Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions related to improving application performance, this can be range from selection software architecture to selection of algorithms.
4
votes
Tolerated Performance when generating a document from SQL
But should you investigate this performance issue? That depends on the value of fixing this problem. …
4
votes
Accepted
The clock problem - to if or not to if?
Consider drift, as Mason Wheeler mentioned. Do not increment each counter, rather update the clock state directly.
Do not assume that every minute has 60 seconds. Some have 59, others 61. If you do …
2
votes
why is the latter function 10% faster although it must create the variables over and over ag...
One example involves a closure, the other does not. Implementing closures is kinda tricky, since closed over variables do not work like normal variables. This is more obvious in a low-level language l …
5
votes
Accepted
Performance question - what are the defects of high level programming languages and compiler...
It is more difficult to write than high-level languages, and doesn't reward this difficulty with noticeably better performance. … As with any performance work, don't “optimize” blindly:
Determine actual performance requirements.
Measure the performance. Profile the software for bottlenecks. …
60
votes
When do function call costs still matter in modern compilers?
In performance-critical code, inlining helper functions can have a noticeable effect. … Even in performance-critical software, the majority of the code won't be a “hot spot”. …
8
votes
Accepted
High Performance Garbage Collection
So it is a wonderful pattern that will not be displaced by other algorithms, but its performance is not competitive with state-of-the-art GC. …
0
votes
Performance on highly filterable web pages
Put an index on your database.
Databases are good at searching and filtering, if they have appropriate indices. Then write queries that use these indices. Log and analyse slow queries to find out why …
1
vote
Accepted
Assembling random indexed packages into an ordered sequence(s)?
When the total number of packets is bounded, using a simple array similar to your suggestion is sufficient. You don't have to scan the array after each received packet to see whether you can flush par …
11
votes
how many cores should I utilize for calculations? #cores or #cores -1?
It depends.
If the machine is dedicated to this computation, you should use all cores – unused computing resources don't speed things up.
If you are using a realtime scheduler, a non-preemptive sch …
8
votes
Accepted
Multiple if condition optimization
Some code is inherently complicated. We can shuffle the code around to emphasize one aspect or another, but we can't really simplify it.
Your code looks like an example of code that cannot be inherent …
15
votes
Accepted
Cyclomatic complexity vs performance
Unless you really need that performance, always prefer better readability. … If you do need that performance, and can prove with a profiler & benchmarking tools that this change will give you that performance, then of course go for it. …
4
votes
Choosing one of two memory blocks to deallocate: Does age affect fragmentation?
free(p);
}
If adding your own caching layer on top of the allocator, note that higher-level caches tend to defeat the performance of lower-level caches. …
5
votes
How to execute a proper comparative performance testing?
In general:
minimize variance where possible
collect lots of data
throw away bad data
apply some statistics
Minimizing variance
You have already identified some possible error sources, e.g. conte …
13
votes
Are there technical limitations or language features that prevent my Python script from bein...
If you are willing to translate your Python code to Cython or RPython, then you'll get C-like performance. … This indirection weighs down performance. …
37
votes
Can we make general statements about the performance of interpreted code vs compiled code?
place – often, there isn't a clear performance boundary between compiled and interpreted solutions. … When choosing a tech, performance of a language runtime in itself is completely irrelevant. …