optimization 648

  1. Why is it faster to process a sorted array than an unsorted array?
  2. Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?
  3. Improve INSERT-per-second performance of SQLite?
  4. Fastest way to determine if an integer's square root is an integer
  5. Replacing a 32-bit loop count variable with 64-bit introduces crazy performance deviations
  6. Big O, how do you calculate/approximate it?
  7. Why is this C++ code faster than my hand-written assembly for testing the Collatz conjecture?
  8. Performance optimization strategies of last resort
  9. How do I achieve the theoretical maximum of 4 FLOPs per cycle?
  10. What is the most effective way for float and double comparison?
  11. Getting all types that implement an interface
  12. Which is better option to use for dividing an integer number by 2?
  13. Is there a performance difference between i++ and ++i in C?
  14. How to identify unused css definitions
  15. Fastest sort of fixed length 6 int array
  16. What is the most “pythonic” way to iterate over a list in chunks?
  17. Flatten an irregular list of lists
  18. How do I add indices to MySQL tables?
  19. Optimum way to compare strings in JavaScript?
  20. Fastest way to list all primes below N
  21. Why does the order of the loops affect performance when iterating over a 2D array?
  22. How can I know which parts in the code are never used?
  23. Deoptimizing a program for the pipeline in Intel Sandybridge-family CPUs
  24. Should import statements always be at the top of a module?
  25. Once upon a time, when > was faster than < … Wait, what?
  26. Most efficient way to increment a Map value in Java
  27. What are copy elision and return value optimization?
  28. Fastest way to convert string to integer in PHP
  29. How to see which plugins are making Vim slow?
  30. Inline functions in C#?
  31. Are loops really faster in reverse?
  32. Most efficient way to concatenate strings?
  33. Are loops really faster in reverse?
  34. Why would introducing useless MOV instructions speed up a tight loop in x86_64 assembly?
  35. How do I position one image on top of another in HTML?
  36. What do the terms “CPU bound” and “I/O bound” mean?
  37. Clang vs GCC - which produces better binaries?
  38. How to log a method's execution time exactly in milliseconds?
  39. Declaring variables inside or outside of a loop
  40. Where to place JavaScript in an HTML file?
  41. Why does GCC generate such radically different assembly for nearly the same C code?
  42. Is optimisation level -O3 dangerous in g++?
  43. What is the effect of ordering if…else if statements by probability?
  44. Why is transposing a matrix of 512x512 much slower than transposing a matrix of 513x513?
  45. Can I hint the optimizer by giving the range of an integer?
  46. What optimizations can GHC be expected to perform reliably?
  47. Tricky Google interview question
  48. Is Disney's FastPass Valid and/or Useful Queue Theory
  49. Why is early return slower than else?
  50. Java NIO FileChannel versus FileOutputstream performance / usefulness