Files
test/source/blender/blenlib
Jacques Lucke 66adedbd78 BLI: optimize constructing IndexMask from bits and bools
This patch optimizes `IndexMask::from_bits` by making use of the fact that many
bits can be processed at once and one does not have to look at every bit
individual in many cases. Bits are stored as array of `BitInt` (aka `uint64_t`).
So we can process at least 64 bits at a time. On some platforms we can also make
use of SIMD and process up to 128 bits at once. This can significantly improve
performance if all bits are set/unset.

As a byproduct, this patch also optimizes `IndexMask::from_bools` which is now
implemented in terms of `IndexMask::from_bits`. The conversion from bools to
bits has been optimized significantly too by using SIMD intrinsics.

Pull Request: https://projects.blender.org/blender/blender/pulls/126888
2024-08-29 12:15:33 +02:00
..
2024-02-06 14:52:15 +01:00
2024-01-31 14:16:22 +01:00
2024-01-03 13:38:14 +01:00
2024-08-12 15:29:20 +02:00
2024-08-28 09:48:17 +02:00
2024-03-25 23:39:42 +01:00
2023-12-05 23:01:12 +01:00