performance (4,378)

Sort By: New Votes
  1. Idiomatic way to distinguish two zero-arg constructors
  2. Fast alternative for numpy.median.reduceat
  3. Why is grouped summation slower with sorted groups than unsorted groups?
  4. Why does allocating a single 2D array take longer than a loop allocating multiple 1D arrays of the same total size and shape?
  5. Insert or push_back to end of a std::vector?
  6. Why is there a large performance impact when looping over an array with 240 or more elements?
  7. Why is allocating heap-memory much faster than allocating stack-memory?
  8. Why is '\n' preferred over ā€œ\nā€ for output streams?
  9. Difference between string+= s1 and string=string+s1
  10. Python vs CPP: Why is the difference in speed so huge?
  11. Fastest way to convert a list of indices to 2D numpy array of ones
  12. Efficient integer floor function in C++
  13. Why is a `for` loop so much faster to count True values?
  14. Why is an integer array search loop slower in C++than Java?
  15. Why is this code 6.5x slower with optimizations enabled?
  16. Why is linear read-shuffled write not faster than shuffled read-linear write?
  17. When should I ever want to use pandas apply() in my code?
  18. Why is if(variable1 % variable2== 0) inefficient?
  19. Will printf still have a cost even if I redirect output to/dev/null?
  20. Consuming stack traces noticeably slower in Java 11 than Java 8
  21. Python performance comparison for creating sets-set() vs.{} literal
  22. Reason for collapse of memory bandwidth when 2KB of data is cached in L1-cache
  23. CSS Animation(@keyframes)is heating up CPU
  24. Why is summing an array of value types slower then summing an array of reference types?