4 ms·
Even the array of structs is a non-ideal approach, as structs are usually viewed as a static collection of data. But if you look at the hot loop, it usually bo
by PicassoCTs 5y ago
Even the array of structs is a non-ideal approach, as structs are usually viewed as a static collection of data.
But if you look at the hot loop, it usually boils down to a funnel - not unlike a furnace.
Lots of highly spacious needing raw materials are gathered and passed through, to be condensed into relatively small output.
So the ideal structure is a sort of union-struct, that compresses the results down each step of the algo, keeping it all in cache, while keeping it slim..
- moldavi 5y agoWould love to hear more about that kind of compressing, how does that go?