3 ms·
You don't need to use the routines; the routines are trivial to write. I expect he gets most of his performance from unrolling and cache effects. My point is r
by barrkel 14y ago
You don't need to use the routines; the routines are trivial to write. I expect he gets most of his performance from unrolling and cache effects.
My point is rather that if you are in a position to bulk read / write, there is probably a better option.
- ANTSANTS 14y agoI think the author knows there are better options for compressing large streams, but still chose to use the situation as a simple benchmark to test the performance of his (admittedly trivial) packing and unpacking routines. You're right that the benchmark is biased due to cache effects/etc from processing in a large stream, however. A more honest (and useful) benchmark would be to test the performance of packed and unpacked integers under a random access pattern.