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.

1vote
0answers
11views

Slow SQL query with nested subquery

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
2votes
1answer
172views

Solution to the N Queens Puzzle in the PicoBlaze assembly language

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

Finding Special Parts in a Word

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
16votes
1answer
2kviews

CUDA Mandelbrot Kernel

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

Identifies connected elements and faces in FE mesh

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
2votes
0answers
74views

backward induction algorithm computation

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
2votes
3answers
2kviews

Fibonacci Sequence Generator generates 1 million numbers

A FibonacciSequenceGenerator in C# looking for speed improvements. Currently generates 1 million numbers in 25.6 seconds. We must use BigInteger because the ...
Charles Henington's user avatar
5votes
2answers
175views

LeetCode Number 416: Partition Equal Subset Sum

Problem: MLE I am confused as to why the LeetCode judge reports Memory Limit Exceeded when my solution looks close to the editorial solution. I not too familiar with ...
user430243's user avatar
6votes
1answer
270views

Julias Set fractal timelapse

I've implemented a fractal renderer with a physics-based animation system that creates a never-ending "timelapse" effect, here is an example video. The function uses pseudo-physics to move ...
NeKon's user avatar
1vote
0answers
85views

Vectorized approach for generating random numbers with specified count and sum

I'm looking to optimize my code by avoiding the use of a for loop, in order to improve performance when working with large data frames controlled by ...
Sophie Père's user avatar
5votes
1answer
359views

How to implement an AVL tree efficient enough in Haskell?

upd: I am very sorry about my mistake. The old version of data is download from luogu, but the website do NOT allow me to download the data of the worst case. In fact, when facing same amount of ...
Haowen Shi's user avatar
2votes
1answer
74views

Efficiently simulating a control sequence

I have a control problem that I am simulating in C. The premise is that I have some continuous-time signal s(t) and I am given some length-150 array ...
Joe's user avatar
  • 175
0votes
1answer
89views

2D line-of-sight recalculation code causes lag whenever a door is opened [closed]

My 2D video game recalculates into a cache the line-of-sight from every tile to every other tile and whether that line-of-sight provides clear shot, cover, greater cover or is blocked. Each time a ...
Petr Hudeček's user avatar
5votes
0answers
135views

FractalRendering on GPU with CUDA

I am doing a fractal renderer using CUDA, SFML, C++, recently optimized it to eat less memory, now I am going to optimize the actual fractals, because for some reason, it is the most holding back ...
NeKon's user avatar
3votes
2answers
145views

Numerical integration using Gauss and trapezoidal methods [closed]

I have written a code that performs numerical integrations—one using the Gauss method and the other using the trapezoidal method. For the Gauss method, I have five separate text files containing the ...
X-SimE's user avatar

153050per page
close