r/cpp • • Feb 16 '26

Favorite optimizations ??

I'd love to hear stories about people's best feats of optimization, or something small you are able to use often!

139 Upvotes

185 comments sorted by

View all comments

Show parent comment

0

u/pjmlp Feb 17 '26

Note that C++17 parallel algorithms are only available on VC++, and on platforms where TBB is available for clang/gcc implementation, and maybe CUDA.

1

u/mike_kazakov Feb 17 '26

While true for "batteries included" experience, there are drop-in implementations of PSTL.
Shameless plug - pstld is one for Apple platforms.