Questions tagged [performance]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

Optimizing minHeap implementation

I have implemented a java class for minHeap but it is not working as fast as I want . I want some help to change it to work faster in insertion or deleting the minimum node. Here is my implementation:...
0
votes
0answers
20 views

17.67s Page Load Speed, with No Html Markup, No Javascript, No Css & no Librarys

Just Started Building a Website Using PHP OOP, There is No Assets, No Librarys and No Css yet However Using https://tools.pingdom.com to test the Page load time it is taking 17.67s to load a blank ...
-1
votes
1answer
35 views

Calculate draws faster in VB.Net

I created this calculation algorithm, unfortunately, it works a little hard for more combinations. How should it be improved for faster operation? ...
1
vote
0answers
17 views

Optimizing the openpyxl program

Purpose of the code: Let's say I have 3 excel files to deal with. Those file have already been filtered or hidden because the content is very large. And I only need part of the content for every ...
0
votes
2answers
59 views

Python: Find pairs of numeric palindromes that sum up to another palindrome

I am trying to identify and print pairs of 4 digit palindromes that sum up to a 5 digit palindrome. This is what I have so far ...
1
vote
0answers
31 views

Reduction of time for matrix multiplication of pixels

This part of my code is taking 30 minutes to multiple 300 RGB and Depth images pixel by pixel. How can I reduce this time? This is just a part of big code but this taking lot of time. ...
1
vote
0answers
51 views

“Smart” sudoku brute-forcer

After running my C-brute-forcer for two days on a 25x25 sudoku, I decided to re-write in Java so that it would solve it in an acceptable time frame. The idea: Make smart fields that contain all ...
3
votes
0answers
39 views

Optimizing the speed/performance of the Openpyxl program

Purpose of the code: Let's say I have 3 excel files to deal with. Those file have already been filtered or hidden because the content is very large. And I only need part of the content for every ...
3
votes
0answers
41 views

Batch normalization code optimization?

I am trying to implement Deep Quaternion Networks. I was able to implement the batch normalization technique. But it requires a lot of GPU memory. Is there any way I can optimize the code provided ...
3
votes
2answers
66 views

Search engine that looks through files

For my programming class, at the start of the semester before we learned about object oriented coding, I was supposed to make a small program that searches through a bunch of files, being graded on ...
5
votes
2answers
67 views

Speeding up string splitting in Rcpp/Cpp

I'm looking to speed up an Rcpp function I have written. The function takes in a string called vcfield, which takes the format od ...
2
votes
4answers
190 views

C# Code to Find all Divisors of an Integer

I made this so I can feed it integers and return an array with all the divisors of that integer. I put checks in in case the integer is less than 2. Order of integers in the array must be smallest ...
2
votes
0answers
54 views

Construction of external sorts from comparison ones

Here's an example how to construct an external sorting algorithm from the Quicksort. The method may be applicable to other known internal comparison sort algorithms. I have checked that it shows N*...
5
votes
2answers
150 views
+50

Creating a list from combinations of the original data

I am trying to create a list based on some data, but the code I am using is very slow when I run it on large data. So I suspect I am not using all of the Python power for this task. Is there a more ...
4
votes
2answers
55 views

Optimizing nested loop for calculating geodesic distance

I segmented an image into N superpixels and constructed a graph based on that in which each superpixel considered as a node. The information about neighbor superpixels is stored in ...
11
votes
5answers
2k views

Are the sum of two numbers desired?

Given two input arrays [-1, 8, 3] and [3, 7, 2] your function will return true if any two of the numbers in the first array add ...
1
vote
1answer
50 views

Optmize logic IF statement [closed]

I have a little dilema with such if statement, I have tried optimizing it in order to remove some checks, but could not think of how to make this code part cleaner. Can someone please make a review, ...
1
vote
1answer
35 views

Check browser compatibility for RequestAnimationFrame and Vanilla JavaScript .animate() API

I'm trying to set up some code to first test if the Vanilla JavaScript .animate() API is Supported, then if it's not check if ...
4
votes
4answers
92 views

check_prime.cpp (checks if input is a prime number)

check_prime.cpp Description: Accepts user input to check if the user entered a prime number. Notes: If any text inputted after an integer will be ignored. For example: 1234.5678 and 98abc will be ...
1
vote
1answer
71 views

Novel sorting algorithm

I have devised a novel sorting algorithm, named Oracle Sort, which I believe is far superior to all currently known sorting algorithms (under certain assumptions). It utilizes an oracle to achieve a ...
3
votes
1answer
62 views

Finding Common Items in arrays

My goal is to get a list of related statementIds in order of most repeated. In my database I have stems(Words): ...
1
vote
0answers
36 views

What would be a more optimal way of filtering a list into sub-lists [closed]

In the start of one of my methods I have a section of code that needs to get three sub-lists of grouped dictionaries from a list of grouped dictionaries. This is a big list and I'm optimizing it a ...
-3
votes
0answers
35 views

Simplify code of this list program

Hi with this program I'm asking for a number and I have the to create as many nodes and print each digit its value. If I write 123 the output should be 1 -> 2 -> 2 -> 3 -> 3 -> 3 if the number given ...
1
vote
1answer
53 views

Designing a dynamic array of Memory Streams

I'm working on a feature for work that requires me to combine a set number of memory streams based on specific conditions. Previous Code Before based on documentation/examples online. In order to ...
0
votes
0answers
40 views

Take a list in input remove all duplicates and count how many they are [closed]

I have tried to make this function but sometimes I get a problem on runtime. I need to take in input a list like 1-2-3-2-4-6-1-2 and the list should be modified as 1-2-3-4-6 so once for every node and ...
1
vote
0answers
28 views

OpenGL fragment shader optimization questions [closed]

My (simple) game engine has one big fragment shader for the whole scene. Right now, with multiple objects, collision detection and bloom post-processing (4 linear passes) I get frame times of ~18ms ...
4
votes
1answer
50 views

Minimalist context compressor

I am working on an implementation of the minimalist compression method. The method is based on context modeling, followed by a simple entropy coder (Golomb-Rice coder). The context model uses a single ...
3
votes
4answers
337 views

Find duplicated text for tasks in MS Project

My code in MS project VBA, in theory, doesn't do anything major. It compares the tasks with each other, but it runs super slow. One run through Temp lasts 15 secs. ...
4
votes
1answer
38 views

Windows autoclicker with a console interface

I have recently started coding in c++ and have made a simple console application. When executed the program asks the user to position their cursor wherever they want continuous repeating clicks, after ...
3
votes
1answer
81 views

The optimized way to find the top k leading candidates from a unsorted hash map in python

I need to write a method that will accept a timestamp and takes an array of votes, I need to return the k leading candidates with that timestamp. I came up with the ...
0
votes
1answer
40 views

Calculate the statistical mean of different files and save it into a CSV file

In this code I calculate the statistical functions of values from different files and save them into CSV files (one filer for each statistical function). ...
1
vote
3answers
56 views

Transpose 2D Matrix in Java - Time & Space Complexity?

Here's my algorithm / approach for transposing a 2D Matrix on the main diagonal. Before: a L M d b G c N H K e F I J O P After: ...
0
votes
2answers
78 views

Java Palindrome - Time & Space Complexity

Which of these three methods is the most efficient? Also, what is the time & space complexity of each? ...
7
votes
1answer
81 views

I have a working Dijkstra algorithm code for solving mazes but I am looking for more performance

This is my implementation of Dijkstra's algorithm. It solves any order square mazes. ...
5
votes
1answer
109 views

Minimalist Golomb-Rice coder

I have implemented a very simple but robust implementation of the Golomb-Rice coding. To understand my motivation, see the minimalist data compressor that is based on this. At the moment, the ...
4
votes
3answers
764 views

How to do these extraction/computations efficiently?

I have a set of products(e.g. P0006, P0009, etc.) and a set of production lines (eg. L1H175, L2H175). A product can be produced on a subset of the lines set (and not necessarily all of them). If we ...
2
votes
1answer
56 views

Loading the stylesheets and scripts on my website

I have made a simple website and I have tried to reduce load times as much as possible. All the content that is loaded is necessary. Is there anything thing I can do to my code, such as structurally, ...
-1
votes
1answer
97 views

Instagram Scraper running to slow

Can someone help me how to speed up this scraping process getting all the usernames from the # 'cats' on instagram. My goal is to make this as fast as possible because currently the process is kinda ...
5
votes
1answer
126 views

Car Showroom Database: Taking user inputs and manipulating arrays

I've been learning C# for around 2 weeks and I'm feeling a bit more confident. I wrote this for general practice and am quite proud but hoping to make it faster and more efficient as I progress and ...
1
vote
1answer
67 views

Color highlighter / annotator in Haskell

I'm a Haskell beginner, and I wanted to make a color annotator or color highlighter, one which takes a text as standard input, and outputs that text, with its color words highlighted using the colors ...
1
vote
0answers
26 views

color and canvas implementations in Rust for Ray Tracer Challenge

I'm learning Rust by working through Jamis Buck's The Ray Tracer Challenge. The book instructs the reader on what to build in what order, and provides all required test cases. Included here are my ...
-1
votes
1answer
43 views

Trying to get every 6th set of 4 bytes from a python array [closed]

I have an array of bytes 6144 bytes long. I want to extract a set of 4 bytes every 6th set of 4 bytes . So every 24 bytes I want to extract 4 of those bytes and join them in a new array. So ...
2
votes
0answers
19 views

Find only one subset sum with a specified value in python for large sets

how can I optimize my code for a large set (10000 elements)? ...
3
votes
1answer
89 views

N body simulation in C++

You can find the complete code on github. Since I'm rather new to C++ I thought that it might be a good idea to write a simulation of the n-body problem to apply some of the concepts that I learned in ...
12
votes
3answers
1k views

Huge integer class using base 2^32 (was 256) follow up

Thanks again to everyone for their very useful suggestions concerning a huge integer class I posted here several days ago. I have made many of the suggested changes, perhaps the biggest being in the ...
1
vote
1answer
35 views

scan activedirectory for all users and their groups in domain with c# [closed]

I wrote a method for a wpf app in .net core to get all users and their group by name if they are in a group from my active directory domaine. ...
4
votes
1answer
53 views

“Wraith” client (RAT) performance

I'm working on a Remote Admin Tool (nicknamed Wraith) which works over HTTP. The code is ugly so far but I'm mainly worried about performance and robustness. Can anyone offer any suggestions as to ...
5
votes
2answers
204 views

A Matrix Library in C++;

I have written a Matrix library that contains all the main properties of matrices. It's a relatively long project, I am hoping it is ok to post here since I really want to have it reviewed. The ...
-1
votes
3answers
121 views

What is the best practice between second assignment or dict's value call?

I want to store a value in a dict (to behave like a cache) but I care about performances. I wonder if it is better to create a second variable in order to store the result of the sum compared to ...
1
vote
0answers
58 views

Multi-threaded image convolution/pooling-python

This multi-threaded code takes an array of 3d images and applies the convolution function with padding, stride, pad values .. as parameters and same applies for creating pooling layers. I need ...

1 2 3 4 5 147