Top "Optimization" questions

Optimization is the act of improving a method or design.

Detect If Browser Tab Has Focus

Is there a reliable cross-browser way to detect that a tab has focus. The scenario is that we have an …

javascript optimization polling
Which is fastest? SELECT SQL_CALC_FOUND_ROWS FROM `table`, or SELECT COUNT(*)

When you limit the number of rows to be returned by a SQL query, usually used in paging, there are …

mysql optimization
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?

If I have some integer n, and I want to know the position of the most significant bit (that is, …

c algorithm optimization bit-manipulation
Where to place JavaScript in an HTML file?

Say I have a fairly hefty JavaScript file, packed down to roughly 100kb or so. By file I mean it’…

javascript html optimization
Is it better to use std::memcpy() or std::copy() in terms to performance?

Is it better to use memcpy as shown below or is it better to use std::copy() in terms to …

c++ performance optimization
MySQL my.cnf performance tuning recommendations

I am kind of hoping that someone might be able to offer some assistance with optimizing a my.cnf file …

mysql optimization performance my.cnf
Are loops really faster in reverse?

I've heard this quite a few times. Are JavaScript loops really faster when counting backward? If so, why? I've seen …

javascript optimization loops for-loop while-loop
Switch case on type c#

Possible Duplicate: C# - Is there a better alternative than this to 'switch on type'? Hello suppose i get a …

c# .net optimization switch-statement
Clang vs GCC - which produces faster binaries?

I'm currently using GCC, but I discovered Clang recently and I'm pondering switching. There is one deciding factor though - …

optimization gcc compiler-construction clang benchmarking
What's the "average" requests per second for a production web application?

I have no frame of reference in terms of what's considered "fast"; I'd always wondered this but have never found …

optimization