r/cpp • • May 27 '26

Accelerating copy_if using SIMD

https://loonatick-src.github.io/posts/vectorized-copy-if-analysis/
46 Upvotes

15 comments sorted by

View all comments

Show parent comment

2

u/Expert-Map-1126 vcpkg maintainer BillyONeal May 29 '26

The comparison part is often the expensive part. Depends on how expensive `pred` is.