Can SIMD in boost unordered be disabled without disabling SIMD for full compile.
Ivan Matek via Boost-users <[email protected]> Sun, 10 Mar 2024 22:40:16 +0100
| Newsgroups | gmane.comp.lib.boost.user |
|---|---|
| Message-ID | <CAB=+0+NGZozofQGY7vL59O5r3PariKA72DGJEs2Gxr3ZOO_CYg@mail.gmail.com> |
Hi, I have some small maps where I am pretty sure SIMD tricks that are amazing in general will just slow down the lookups since I never lookup items not in the map and map is so small that benefits of not looking up into the big array and trashing the cache are miniscule. I know I can force compiler to not support SIMD with march, but I want to keep the SIMD optimizaitons for rest of the code, including large boost unordered objects. If you do not believe me I can write a custom benchmark, from what I see all benchmarks in docs start at 1E+4. P.S. I know I can just use an array, but I am in that "size range" where iteration becomes slower than a hash map. regards, Ivan _______________________________________________ Boost-users mailing list [email protected] https://lists.boost.org/mailman/listinfo.cgi/boost-users