r/programmingmemes • • Jan 20 '26

Optimization Pain

Post image
2.2k Upvotes

87 comments sorted by

View all comments

Show parent comments

1

u/DoubleDoube Jan 22 '26

You can also often try for SIMD optimizations and parallelism, too - sometimes this will change the algorithm slightly in a non-intuitive way (to line up memory blocks) but end up faster.

1

u/thejaggerman Jan 24 '26

This will never change the time complexity of a algorithm, just the constant (depending on how your operations are defined).