Skip to main content

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
-3 votes
0 answers
41 views

I’m currently building a trading platform that requires streaming real-time price updates to the UI. I’ve implemented a WebSocket gateway and added handling for common issues such as: Ghost/...
webster's user avatar
0 votes
0 answers
61 views

I am creating a program to create digital twins of enterprises. I am using the Simpy framework for this purpose. I'm creating a universal system that can model almost any enterprise, but I have a ...
Андрей Александров's user avatar
4 votes
3 answers
84 views

I have a custom object which stores dataframes in memory given a certain hierarchy, and I want to store this data in a file while maintaining the hierarchy. This hierarchy involved parents, children, ...
Marcus Carpenter's user avatar
2 votes
0 answers
80 views

I put together this Native Messaging performance test to determine based on evidence which programming language, JavaScript engine or runtime, and WebAssembly compiled code is fastest to round trip 1 ...
guest271314's user avatar
1 vote
1 answer
111 views

(Refer to the entire repository in GitHub.) How it looks like Intro This time, I present my take on Jump point search that I translated from Javascript (PathFinding.js/src/finders/JumpPointFinderBase....
coderodde's user avatar
  • 32.3k
8 votes
1 answer
719 views

I'm interested if the code below could be further enhanced for out-of-order execution. Function inputs: rcx = pointer to a 2 by 64 byte table to multiply 64 bytes ...
rcgldr's user avatar
  • 376
5 votes
2 answers
365 views

I want to begin by sincerely thanking the community for the invaluable feedback on my previous BRESort byte-sorting research. Your insights about enums, named constants, loop optimizations, and test ...
LazyCauchPotato's user avatar
4 votes
1 answer
92 views

Intro (See the full repository here.) A non-uniform undirected hypergraph is a generalization of an undirected graph. It is defined as \$H = (X, E)\$, where \$X\$ is the set of vertices and \$E \...
coderodde's user avatar
  • 32.3k
7 votes
4 answers
686 views

I've created BRESort - an adaptive sorting engine that dynamically selects optimal algorithms based on data patterns. It achieves 3.6-4.2x speedup over stdlib qsort ...
LazyCauchPotato's user avatar
10 votes
2 answers
414 views

This is a follow-up question for SIFT Keypoint Detection for Image in C++. With the detected SIFT keypoints of images, image stitching is possible to perform. In this post, the first step is to ...
JimmyHu's user avatar
  • 7,575
9 votes
4 answers
809 views

The purpose of this code is to find the smallest semiprime \$s = a b\$ satisfying a bunch of conditions stated in the Math.SE question What is the smallest "prime" semiprime?. The conditions ...
mezzoctane's user avatar
0 votes
0 answers
18 views

I’m building a simple Food Manager screen using Jetpack Compose. The UI allows users to: Select a food category (Fruit, Vegetable, Snack, Drink). Select an item from that category. Add the ...
Ehtsham Hussain's user avatar
1 vote
0 answers
140 views

Background I am building a complex, standalone class. It has a property called .Mapping, which should behave like a Dictionary. ...
Greg's user avatar
  • 569
6 votes
1 answer
541 views

I’ve implemented a Connect 4 AI in JavaScript using a Negamax search. My goal is to solve the game completely from the starting position (depth 42). I’m trying to make it as fast as possible and would ...
eligolf's user avatar
  • 199
7 votes
1 answer
882 views

I am building a chess engine in C++ and currently working on the move generation. To measure performance I use perft, but my main goal is to make the move generator itself faster. I already use ...
Viliam Holly's user avatar
2 votes
0 answers
92 views

This is a follow-up question for Generate Mandelbrot Fractal Image in C++ and An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. Besides Mandelbrot Fractal ...
JimmyHu's user avatar
  • 7,575
3 votes
1 answer
140 views

This is the third iteration of the code from Calculate optimal game upgrades, v2 and Calculate optimal game upgrades. I'm looking for suggestions to further optimize this code. A brief summary of the ...
ayaan098's user avatar
  • 125
6 votes
3 answers
682 views

This is my very first personal project. I'd like to know what I can improve in this code, with reference to optimization and efficiency. Here's the code: ...
new_coder's user avatar
12 votes
2 answers
1k views

This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. I am trying to implement Mandelbrot Fractal image generator in C++ in this ...
JimmyHu's user avatar
  • 7,575
4 votes
3 answers
452 views

As a follow-up to my previous question, I've decided to post a follow-up question with a revised code that accommodates most of the inputs from the previous question's comments, namely: Used ...
Stony's user avatar
  • 107
5 votes
3 answers
570 views

I need to solve the following competitive programming problem from coderun.ru: Strength of a Pyramid Top The pyramid consists of n horizontal layers of blocks: the first layer contains n blocks, the ...
Stony's user avatar
  • 107
7 votes
4 answers
1k views

I am trying to solve the 909th challenge of Project Euler. It is basically about replacing specific patterns in a string until no pattern is found. A given string like ...
polfosol's user avatar
  • 319
3 votes
0 answers
75 views

This is a follow-up question for Two dimensional bicubic interpolation implementation in C++. I am trying to implement Lanczos resampling for 2D image in this post. The experimental implementation <...
JimmyHu's user avatar
  • 7,575
4 votes
3 answers
709 views

The task is educational. The basic functionality is working. Here are some questions for my code. Please give me feedback. Main: Architecture & Design: Is the decomposition appropriate? Should ...
bonnyped's user avatar
1 vote
0 answers
67 views

I was working on my version of "Universe Sandbox" and first thought comes to your mind is "where the hell are my planets?" so I thought loading models sucks and made this thing, It'...
NeKon's user avatar
  • 641
2 votes
1 answer
337 views

This is a follow-up question for Two dimensional gaussian image generator in C++, Three dimensional gaussian image generator in C++, General Two-dimensional Elliptical Gaussian Image Generator in C++ ...
JimmyHu's user avatar
  • 7,575
7 votes
1 answer
240 views

I had semi-recently asked a question (well a couple closely related questions) on math.stackexchange. The simplest question is phrased as follows: You are allowed to make 3 permutations of length n. ...
Dair's user avatar
  • 6,220
7 votes
1 answer
365 views

This is a follow-up question for Two dimensional gaussian image generator in C++ and Three dimensional gaussian image generator in C++. According to the statement in https://fabiandablander.com/...
JimmyHu's user avatar
  • 7,575
3 votes
2 answers
252 views

Here is a third implementation, the second is in my question Place queens and rooks with the higher score (extension of the queen problem) and an initial one is in my answer for the question N queen ...
bruno's user avatar
  • 212
5 votes
4 answers
303 views

To compare ergonomics and performance of some languages for my hobby projects, I have written a simple lines of code counter in Swift, Go, Rust and Python. It scans a given directory tree for source ...
user avatar
2 votes
1 answer
160 views

I am developing a Blazor web app using C# .NET 9 in Visual Studio Code. I am using SQL Server 2017. This project is intended for internal company use. In the ...
DevQt's user avatar
  • 157
4 votes
1 answer
196 views

This is a continuation of the question N queen problem-like (+rooks and a different goal) written by someone else, where I answered. EDIT I continued to work on the subject and a third implementation ...
bruno's user avatar
  • 212
2 votes
1 answer
112 views

The requirement is to split the headers from the request body, most efficiently. Possible approaches I have employed and/or considered Decode to text, match ...
guest271314's user avatar
7 votes
3 answers
582 views

I've made a program for randomly splitting game participants into different teams. The code works and solves the problem. I'm interested in advice on what you'd do differently or better. ...
tomi bell's user avatar
3 votes
1 answer
189 views

The code shown below goes back to the tutorial How to Use a Timer in Tkinter. I first simplified the tkinter import by restriction to Python 3. Then I found a ...
Wolf's user avatar
  • 375
6 votes
1 answer
342 views

This is a library I've been writing, for now named ALFPN, for converting between native floats and layouts that are not native - half, various 8-bit formats etc. ...
herhor67's user avatar
2 votes
1 answer
217 views

I decided to work on an idea I had to 'optimize' the classic C function strstr. Most of the implementations I had seen that did not make use of advanced ...
mindoverflow's user avatar
6 votes
2 answers
732 views

Here's my (correct) solution to a HackerRank question: Weather Observation Station 8 Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last ...
JTB's user avatar
  • 277
6 votes
1 answer
593 views

I am working on a problem on LeetCode. Considering only lowercase characters from 'a' to 'z', I have written some Java code to check if a permutation of a given pattern is a substring of a given ...
EngineerP's user avatar
13 votes
5 answers
3k views

This is my infinite precision integer implemented in C++20. It supports negative numbers. I have implemented addition, subtraction, multiplication and binary integer division, which returns quotient ...
Ξένη Γήινος's user avatar
3 votes
1 answer
86 views

This is a part two. The problem originates from here, it is solved for \$n<11\$. A GitHub repository for this code, printing paths, and a collection of all proven best paths, it is open to ...
tomka700's user avatar
  • 203
9 votes
3 answers
2k views

After a success with the Jumble puzzle solver, I am doing a Wordle puzzle solver. I know many other Wordle solvers have been posted, yet this is my original version, which emphasizes list ...
inyoot's user avatar
  • 357
5 votes
3 answers
254 views

I have implemented Sieve of Eratosthenes with Wheel Factorization in C++ again, this time using a bigger wheel and much more complicated C++ syntax, to familiarize myself with C++ and see how fast I ...
Ξένη Γήινος's user avatar
5 votes
3 answers
1k views

I have written the below query in order to identify how many events (occur over a week) in each hour. ...
Danny Goodall's user avatar
3 votes
1 answer
261 views

You can see it live here: ...
FlatAssembler's user avatar
4 votes
3 answers
570 views

Task description: Imagine you have a long word made up of small letters like "a", "b", "c", ancd so on. Let’s call this word a puzzle word. We want to look at all the ...
CodeCrusader's user avatar
15 votes
1 answer
2k views

I'm looking for feedback and suggestions on improving the performance and quality of my CUDA kernel for rendering the Mandelbrot set. I've implemented a "ping-pong" style coloring and ...
NeKon's user avatar
  • 641
1 vote
0 answers
42 views

So I'm conscious that this is a weak appeal for best practices. I'm building a converter that moves generic FE meshes to an inhouse edge format in Fortran and at some point I made a truly diabolical ...
Subject303's user avatar
5 votes
1 answer
155 views

Is there a way to significantly speed-up this code? I'm solving a dynamic programming model using a backward induction algorithm. A crucial step is to calculate the current-period value function (VF), ...
manifold's user avatar
  • 151
2 votes
3 answers
2k views

A FibonacciSequenceGenerator in C# looking for speed improvements. Currently generates 1 million numbers in 25.6 seconds. We must use BigInteger because the ...
Short Int's user avatar
  • 762

1
2 3 4 5
177