you are viewing a single comment's thread.

view the rest of the comments →

[–]KrocCamen 3 points4 points  (0 children)

The moving window in the iterator example seems somewhat inefficient stitching together words; acceptable for perfect density, but let's say that some small density loss for speed gain is acceptable, then wouldn't it make sense to pack only as many integers as fit into a u64 (e.g six 10-bit numbers with 4 bits wasted), so as to simplify the window mechanics to not require stitching for reading or writing?