nvzqz / byte-set-rs

Efficient sets of bytes for Rust
https://docs.rs/byte_set
Apache License 2.0
19 stars 1 forks source link

Use 64-bit chunks on specific 32-bit CPUs #3

Closed nvzqz closed 4 years ago

nvzqz commented 4 years ago

ByteSet is composed of [u64; 4] or [u32; 8] depending on the target architecture (determined in build.rs).

Currently, chunk size is based only on native register size. ByteSet should expanded be to use 64-bit chunks on 32-bit targets with meaningful 64-bit instructions.

Consider (and benchmark!):

nvzqz commented 4 years ago

For the sake of simplicity and making #8 easier, chunk size will only be determined by the target's pointer width.