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)

2
votes
0answers
22 views

Preventing numbers from showing up in scientific notations

We have a StreamBuffer class which is not inherited from std::ios_base (or some of it's derivatives such as ...
2
votes
0answers
23 views

Walking a directory in Haskell

I wrote a function that recursively walks a given directory. ...
0
votes
0answers
9 views

Iterative Calculation

This Google Sheets script performs an iterative (circular) calculation to find values based on a gross percentage of project cost. Range names are used so that users can add/delete rows/columns and ...
1
vote
0answers
59 views

Cycling through 15000+ rows to find/highlight rows with duplicate values in Excel VBA [migrated]

Public Service Announcement: New Users, please take note of my mistakes This post only remains up as an example of what NOT to post on this site. Though the question has been heavily ...
4
votes
2answers
35 views

Normalized random position generator

I place various divs on screen by adding random x and y positions successively normalized with this function. My question is, how well is it written? Can I improve it? If so, then how? I am worried ...
2
votes
0answers
32 views

Benchmarking function variations

I'm trying to benchmark two variations of one of my functions. Namely, these functions are for displaying integer values on the command line. The first of these uses my own implementation and prints ...
4
votes
3answers
116 views

Filter column and row according to regex in header

I'm writing a script that can grep the rows and columns from a text file that match a regex. I have an implementation but I'm looking to make it more elegant. input.tsv ...
2
votes
3answers
59 views

Reflection optimization

In a web application I'm working on I have a class that Map objects to other (different) objects. It is implemented with something like: ...
3
votes
2answers
55 views

Comparison function for strings

I got a function that has as input 2 strings, computes the string similarity of all the combinations and give back and output the highest similarity. For example, "you are" and "are you" will have 1 ...
1
vote
1answer
16 views

Compare sequence & maps headers in fasta file

This is the perl code which compares the sequence in fasta file & maps the header. Though the code is working well, I still would like to make it more efficient. Since the files I compare has ...
1
vote
0answers
9 views

How to properly assess performance gain of CreateDelegate instead of pure reflection? [duplicate]

In a web application I'm working on I have a class that Map objects to other (different) objects. It is implemented with something like: ...
0
votes
0answers
33 views

Calculate and make a database of prime numbers

I recently created a program for finding a prime number. It's working great and doing it very fast but I was wondering if you can help me make it calculate the prime numbers faster. ...
2
votes
0answers
26 views

Show one sheet for each field in pivot filter field

Into my workbook I've the db of inventory, in another sheet I've one pvt and in the filter field I put the filed "Card". Now I want create one sheet for each "Card" usually I use this code for this ...
3
votes
2answers
52 views

Sort array of objects with hierarchy by hierarchy and name

I have an array of nested objects: ...
8
votes
1answer
54 views

Implementing Multi-File Programs in Vitsy

I'm the proud owner of the Vitsy programming language, which I've been working on for some time (except recently, because high school). It's only been used in PPCG so far, but I hope to expand it to ...
2
votes
1answer
13 views

Collating client ratings

The code is fetching records from a table called CSAT_SUMMARY_REPORTS[driver table] but due to the filters conditions applied which needs to be checked in another table called CSAT_REPORT_FIELDS. In ...
-1
votes
1answer
97 views

Simplest linked list in C++?

My context was basically to get my linked list implementation in C++ reviewed, since I wrote it from scratch and wanted to make it as simple as possible and learn from suggestions I get. I am trying ...
0
votes
1answer
22 views

Finding colors that have not been assigned to a given user

Goal: make this code as efficient as possible. Given a finite dataset (Colors - this isn't Crayola here :D) how do I know what colors are not assigned to a given user? Additional requirement - the ...
2
votes
0answers
51 views

Project Euler #14 in Clojure (finding long Collatz sequence chain)

I'm working on a Clojure implementation for Project Euler #14, which asks for the initial element, under 106, that produces the longest collatz-sequence chain. I'm trying to make use of every ...
2
votes
1answer
34 views

JavaScript game tick

How can I achieve a more performant tick code keeping my minimum frame rate high? ...
1
vote
0answers
42 views

Performance of the String searching algorithm

I am trying to solve a string matching question mentioned here. I recently learned the Knuth–Morris–Pratt algorithm and tried to implement it to solve this question. But I am getting a TLE for this ...
3
votes
2answers
62 views

Generating simple and complex passwords

I am pretty new to Python and I would like some tips and criticism on my formatting style/code and what can be better organized. I am a bit shaky on how classes work, but I think that it can be used ...
5
votes
1answer
60 views

Loading DLLs to produce reports

My application relies on an unknown number of DLLs that each produce a report. The only thing that is known in advance is the location of the files and the classes that each will contain, including ...
0
votes
0answers
31 views

Randomly choose a game executable from a folder 2.0

After asking Randomly choose a game executable from a folder, I applied the recommended changes. I also redesigned the program to make use of the MVVM (Model-View-Viewmodel) paradigm, using Prism 6.0. ...
5
votes
0answers
27 views

Auto-click the sequence

The following pascal script needs a bit of context for it's purpose to be understood. For those who don't give about purpose, feel free to skip ahead. Background A game I'm terribly fond of has a ...
3
votes
1answer
38 views

Hash Matrix performs Gaussian elimination

This is the Hash-Matrix that I used in order to process the matrix for my quadratic sieve algorithm. You can find the full code at here(it's java 7), but I only want you to review this class. My ...
3
votes
4answers
369 views

Min and max of numbers read from a file

I had to create this program, and I did it fine, all is working and stuff but I was wondering, what is better way of doing such thing? I want more efficient method. Problem assignment: In the ...
3
votes
1answer
37 views

String concatenation comparisons

For some time, JavaScript string concatenation could be optimised by join()ing an array of strings, instead of +ing them ...
3
votes
1answer
35 views

TicTacToe game in Python

I'd just like to ask if there's anyway to make the functions play_Game() or is_move_valid() anymore efficient. For example, ...
3
votes
1answer
47 views

Generate voxel terrain with Perlin Noise

For my chunk generator for my game, it currently uses a triple nested loop, which seems very inefficient. It also seems like I could cut down a lot of code in the function somehow. Does anyone have ...
1
vote
1answer
22 views

Parsing data from big json field and geocode services then store to PostgreSQL using psycopg2 instead django-orm

This code works, but my boss told me that it's very bad code, and don't want to deploy it. It is my first time working as a programmer and I have at least 3 months of experience. ...
2
votes
1answer
35 views

Heaping up with the inqueries

Challenge: Given three query types simulate heap operations. Specifications: 1. "1 v" - Add an element v to the heap. 2. "2 v" - Delete the element v from the heap. 3. Print the ...
1
vote
1answer
20 views

FizzBuzz in the MIPS ISA

The title pretty much explains it. This is the first program I've written in assembly, so any criticism, either on programming style or saving instructions, would be appreciated. ...
0
votes
0answers
21 views

Splitting two ObservableCollections lightning fast

I'm working on wiring up a bindable Map for Xamarin Forms, and I need a fast way of dividing up the ObservableCollections (collection of map markers) as quickly as possible. Collections are a weak ...
2
votes
1answer
42 views

SICP exercise 1.3 - sum of squares of two largest of three numbers

From SICP Exercise 1.3: Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers. Square is: ...
1
vote
2answers
87 views

Two and a sub string

Challenge: Given two strings, A and B. Find if there is a substring that appears in both A and B. Specifications: Several test cases will be given to you in a single file. The first line ...
4
votes
1answer
36 views

YAGOP - Yet Another Generic Object Pool

While thinking about this question it struck me that one problem of linked data structures always seems to be loss of memory locality and performance could possibly be improved if all allocated nodes ...
12
votes
5answers
873 views

Enter my Matrix

Here is my next Java assignment: create a Matrix class that can add and multiply two matrices together. I was given some code as a skeleton and then fleshed it out ...
8
votes
4answers
417 views

Custom memcmp function

I have written my own memcmp() function for learning purposes: ...
2
votes
2answers
48 views

Efficiently index rows of numpy array by exclusion

I need a function that takes a numpy array and a row number as inputs and returns the array (or copy of the array) excluding the given row. I want to do this as efficiently as possible. ...
3
votes
2answers
41 views

Finding a pair of words from two files with a particular MD5

I have two txt files. Both contain 60k+ words in a list. I put together some code to loop through each file and concatenate the strings ...
1
vote
1answer
52 views

Templated linked list in Java

I recently reviewed some data structure concepts, so I implemented my own templated linked list. I am very interested about the code efficient and performance. ...
2
votes
2answers
51 views

Slice chunking in Go

I have a slice with ~2.1 million log message strings in it that I am parsing for regular expression matches. For any matches, I add it to a local slice and then return said slice. ...
1
vote
1answer
50 views

Grabs 10 bytes and converts it into a hex formatted string

I'm working on some code right now where the goal is to take in a byte stream and grab the data from the body of a message. The data is 10 bytes long and is meant to be translated into hex. ...
2
votes
3answers
107 views

Copying rows from one workbook to another

This code will copy data from a workbook and copy it to an existing (and open) workbook. At the beginning of the month this copy/paste works very quickly, but as the month goes on and the data also ...
1
vote
1answer
26 views

Using [ChildActionOnly] for generating links

I have a view which displays a list of items, in each row I'm going to have a link, a link in each row points to different location So base upon a property called ...
2
votes
0answers
28 views

Transform and transpose byte[] of 32bit image data in 24bit array image data

I would like to know if someone can think about a better solution for doing this stuff. I have an array of raw bitmap data in 32bit format (RGBA). I need to transform and transpose this array into a ...
2
votes
4answers
136 views

Consecutive whitespace reduction

I pursued an according algorithm with an absolute best performance, the following class embodies the solution. Any comment is welcome. ...
4
votes
1answer
67 views

Randomly choose a game executable from a folder

I've written a Universal Windows Application which allows you to select a folder and shows the icon and name of a random executable from anywhere in that folder. The intent is to be a Game Roulette, ...
0
votes
1answer
56 views

PHP Instant Message API

I am creating a chat API for Android developers, but it's slow -- the chat app is getting messages a little bit late. How can I improve the performance of my code? ...