Performance is a subset of Optimization: performance is the goal when you want the execution time of your program or routine to be optimal.

learn more… | top users | synonyms (4)

-1
votes
0answers
19 views
0
votes
0answers
7 views

Finance Manager

Somewhat experienced with javafx, but this is my first potentially large javafx project that I recently started and wanted some feedback on anything that could be done better or more efficiently thus ...
0
votes
1answer
14 views

String hash generator

There is a lot of code duplication because it generates hashes using multiple cryptographic hash algorithms. How can I improve this code? ...
3
votes
1answer
14 views

CSV concatenator

I have the following code (running in LINQPad) which takes tens of thousands of CSV files and concatenates them to create a single file. Each CSV file has two lines: a header line and a data line. I ...
0
votes
0answers
10 views

Simple factory for CRUD operations on Sqlite using Javascript and Q

I have written this implementation and I would love to make it more efficient. While I am indeed requesting a code review/suggestion, I would also love to get feedback on readability and coding style....
2
votes
3answers
45 views

First n primes optimization

Pretty standard. Generates the first n primes, input via a scanner. ...
1
vote
1answer
64 views

Pokemon search engine

I am making a simple function to find and match any possibilities what Pokémon the user wants. This is accomplished by taking in the input (what the user thinks the Pokémon is named) and compare its ...
1
vote
1answer
60 views

How to keep game code organized

What are the best practices to writing clean, expandable game code? I always end up getting overwhelmed with my games because the code gets very unorderly. I use OOP (java), but I still feel like my ...
0
votes
1answer
28 views

Retrieving remote pages and parsing html

This is my code: ...
-2
votes
0answers
20 views

How can I speed up the following function in R?

I wrote the following function in R. I want to iterate it, say 50000 times. I used "sapply" in my function but it runs slowly in R.My PC is still working about 20h now and I have no idea about the run ...
5
votes
1answer
46 views

Generating a sequence of MAC addresses

The following code will generate a sequence of N mac addresses based on the input from user. The input must be atleast one octet to generate the sequence , ie : ...
3
votes
2answers
348 views

Memoization with factorial in Python

I wrote a Python module to learn about memoization, and I have some questions on what I did. How pythonic is this? Does it make a difference if I used a class attribute instead of a function ...
-2
votes
0answers
9 views

Why I'm getting segmentation fault (core dumped) for higher inputs in primitive calculator using DP? [on hold]

You are given a primitive calculator that can perform the following three operations with the current num- ber x: multiply x by 2, multiply x by 3, or add 1 to x. Your goal is given a positive integer ...
1
vote
1answer
38 views

Pixel manipulation performance

I have created a function that adds "shadow" to the content of a canvas. The algorithm for adding shadow follows these rules: If the either x or ...
2
votes
1answer
21 views

pdftk replacement

I am working on a replacement for a program called pdftk. The program needs to be able to take pdf's, and generate fdf files for them, fill a pdf from an fdf, output info about the forms, and output ...
4
votes
2answers
30 views

Finding an equilibrium index in an int array

Here is a programming challenge from codility A zero-indexed array A consisting of N integers is given. An equilibrium index of this array is any integer P such that 0 ≤ P < N and the sum ...
12
votes
1answer
109 views

When it rains, it pours - August 2016 Community Challenge

1. Introduction This code is my attempt at solving the August 2016 Community Challenge. Coming from a city where it rains cats and dogs on a daily basis this challenge was right up my alley =) 2. ...
4
votes
1answer
207 views

How to speed up PDF processing by PDFBox app jar

I want to convert a large PDF file into individual text files with PDFBox using Python. Below is my code which takes lot of time to convert a PDF containing 1000 pages. Is there anything I can do to ...
0
votes
0answers
36 views

Script Task to read complex Excel file structure with multiple sheets and export into database tables

Currently working in SSIS 2012 - Script Task to read complex Excel file structure with multiple sheets and export into database tables. Below is my sample code which does below process. Get the ...
6
votes
1answer
37 views

Output the average values of binned columns in Excel VBA

This code is meant to run through a column of values, bin the values based on specified ranges, then output the average value of each bin. The problem is the code is running quite slowly (...
5
votes
1answer
41 views

Pasting Values To/From a Calculation Model

I have a Database worksheet (SoapUI - CollisionsSingle) that have around 1500 records and 38 columns of data per record. I have a VBA script that copies the records ...
7
votes
1answer
90 views

Multithreaded Decompression

I'm working on optimizing a class for decompressing Mass Effect 3's .sfar files. .sfar files are archives, and this function decompresses a file from inside an .sfar and writes it to the provided ...
-8
votes
1answer
34 views

Printing the results of many cryptographic hashes [on hold]

Which of the following Java code would run faster? ...
2
votes
2answers
86 views

HackerRank: Equal Stacks

This is my solution to the Equal Stacks problem on HackerRank. I thinks it's really messy and slow. could you give me some thoughts about how to optimize given code and algorithm(i'm pretty sure ...
1
vote
2answers
68 views

Another Python prime-listing algorithm

I wrote a small program in Python that finds primes (how original) up to some limit. I tried to produce very clean code, so I'd be vary grateful if you could point out any improvement I could do to ...
1
vote
2answers
54 views
1
vote
1answer
31 views

TLE in APS - Amazing Prime Sequence in Python at Spoj

This series is similar to Fibonacci Series defined as : a[0] = a[1] = 0 and For n > 1, a[n] = a[n - 1] + f(n), where f(n) is ...
1
vote
2answers
38 views

Small haskell text-processing script

I'm a bioinformatician and mainly use python, but I'm trying to learn Haskell. So far I like this language because it's beautiful and fun, but my Haskell scripts usually end up being much slower than ...
2
votes
1answer
62 views

Displaying dynamic fields for Trac tickets

TLDR: Rendering is too slow when having lots of custom fields and rules. So I need help to improve this javascript code. #9606: Trac ticket about issue I have a trac 1.0.8 installed on a ubuntu ...
1
vote
1answer
25 views

Extracting site visit information from a REST API call, including addresses from a MySQL database

I'm building a web app that pulls data from a ticketing system via REST API. I'm currently able to pull all of the data I need just fine but the loading process is really slow. I'd love any feedback ...
1
vote
2answers
62 views

Webdriver-based test that uses configuration parameters from a database [on hold]

I am writing automated functional tests for my application. To interact with the application, I use the SQL database to retrieve data and validate data. One of the challenges that I'm facing is that ...
0
votes
0answers
18 views

Real Coded Genetic algorithm performance issue [on hold]

I am pretty new to genetic algorithms, and wrote a real valued genetic algorithm with an sbc function used for crossover. Currently I was trying to use the class below to train the weights for ...
4
votes
1answer
34 views

VBA Print Summary Pages - Excel - Runs Slow

Looking to speed up this code some if possible. There is a main page with this macro assigned to a button. Once the button is pressed it ask if you wish to continue and mentions it takes a while to ...
5
votes
2answers
89 views

Simple matrix class C++14

I created a simple 4x4 matrix class (column-major). I would like it to be efficient and to use C++14's full capabilities. Can I improve it? ...
4
votes
1answer
80 views

A simple MP3 file arranger

I am creating a simple Mp3 Files Arranger the Project is on Github Questions: How can I optimize this app? Am I violating any OOP principle? Is it readable? How can I make it better? GUI.java <...
1
vote
1answer
28 views

Getting the last post of all threads

My MySQL query is loading very slowly (over 30 secs) and I was wandering what tweaks I can make to optimize it. The query should return the last post with the string "?" of all threads. ...
1
vote
1answer
53 views

Copy and paste to different worksheets

This code: Copies a value from "Sheet1" Pastes special (as a number) in another sheet "Sheet2" Jumps to the next line I ...
6
votes
2answers
319 views

First simple multithreaded application

It's been quite some time since I got my eye on the multi-threading, today I decided to create a really simple application which runs 2 while loops simultaneously and prints the current progress of ...
4
votes
1answer
73 views

Replace EOL in stream

I need to replace the windows EOL "\r\n" with just "\n", and I want to this in the fastest way possible, as the software will have a lot of files to upload, many of them with a few thousands lines. ...
13
votes
2answers
1k views

Tetris in C, in 200 lines

I aimed at making fully functional (real) Tetris, in the shortest way possible in C. The result is a terminal game for Linux, that uses ncurses. I made it for my friend, who wanted to play it on his ...
4
votes
0answers
24 views

SVNKit - Speed up diff on large repositories

I have large amounts of sometimes massive Subversion repositories I'm trying to scan to find the number of additions, deletions, and files changed, similar to what GitHub does. Because of this, the ...
0
votes
0answers
12 views

Efficient visualization of large number of particles using openGL

I have been looking into using some software to perform industrial-scale DEM simulations. These type of simulations will require millions of particles to be simulated. Currently, the software I ...
2
votes
1answer
45 views

Adding a specific list of numbers to an array

I need to add a range of numbers to a list based on specific conditions. The method recieves a String, and based on value of the String, specific list of values should be added to the list. Name ...
4
votes
1answer
42 views

Powershell Interaction with Excel (Highlighting Cells)

I'm using Powershell to compare two, large csv files and output the rows which don't match. Once the two output files are made (one for the differences on each), I bring them up on Excel. Now I want ...
2
votes
3answers
36 views

Converting a range in excel to a single column with excel vba

I am very new to coding and know only the basics. The first part of this code is running fine. It converts a range of values to a single column. However, with my data set the rows of data step down,...
1
vote
0answers
35 views

Re-Ordering the draw order for my entities in my Isometric game

Introduction I am making a 3D Isometric game. I have a Tower, filled with Block's in a 3D ...
6
votes
3answers
185 views

Searching files in a directory for a string

I have the following static class that enumerates directories in a folder, then searches each file in the folder (it seems to only work with text files even thought I don't explicitly specify that) ...
1
vote
2answers
192 views

Excel VBA used to fetch Access data

I am using the following VBA to fetch data from an Access database. The query works but there is a lot of information in the database and the response time is very slow, about 30 seconds. Is there ...
4
votes
0answers
45 views

H.264 image encoding using Media Foundation .NET

We have some video analysis software written in c# .NET that uses OpenCV via the Emgu.CV wrappers. The video frames come from a GiGEVision camera (not a normal capture device) which are then analysed, ...