New answers tagged performance
3
votes
Guess a Number Game
Observations:
PEP 8 suggests using snake case for function names. A name like GuessNum is appropriate for a class, but a function should be something like ...
2
votes
E-car-sharing problem with charging between the bookings
Comments
Remove all commented-out code to reduce clutter. Here are some examples:
...
1
vote
Optimizing DataFrame iteration when generating large hierarchical text files
Long story short, use more Pandas and use fewer lists and classes. Whereas - given the current number of blocks and registries - representing the subframes as separate objects isn't a big deal, it isn'...
1
vote
Optimizing DataFrame iteration when generating large hierarchical text files
consistent naming
There is almost nothing to the Block class,
yet we wind up with this:
...
1
vote
Optimizing DataFrame iteration when generating large hierarchical text files
Here are some minor coding style suggestions.
Simpler
When I run the code, I see output like:
Time take to write sped (in seconds): 0.9321348667144775
You could ...
4
votes
Jump point search in Java for faster pathfinding in grid mazes
To handle diagonal moves that cross walls, you need to relax the corner-blocking logic in both the jumper and the neighbour finder.
Right now, your ...
4
votes
SIFT Keypoint Detection for Image in C++
About get_potential_keypoint template function
This function uses nested #pragma omp parallel for loops. All threads created by ...
0
votes
Calculate the median value of combining two sorted lists
Let's break the merging of two lists out into a function. And for fun, let's have the function return an iterator rather than eagerly working on both lists.
...
Top 50 recent answers are included
Related Tags
performance × 9139python × 2368
java × 1277
c++ × 1118
algorithm × 1013
c# × 871
javascript × 841
programming-challenge × 655
python-3.x × 643
beginner × 626
c × 555
strings × 377
array × 328
php × 297
vba × 271
excel × 269
sql × 259
numpy × 243
primes × 221
jquery × 206
image × 204
multithreading × 183
python-2.x × 181
matrix × 179
recursion × 156