I guess with const fns the source of optimized CRC hashing tables* can become a bit more, err, legible. Calculate table once at compile time; inline the resulting data in the binary. *Currently CRC hashing tables are just giant copy-pasted arrays full of numbers.
-
-
phf_map can be used to get compile time constants for this You don't want the map itself to be an actual const because rust will substitute it everywhere and bloat things.
-
Ah, that's super unfortunate. Was hoping it'd be, like, not bloated. What kind of bloat would it be by the way? Duplication?
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.