-
-
A proper generic programming library would let you say things like "I have eight arrays, and I want the counts to all come first and then the pointers to all come second". std of course can't do this, because the designers of the language don't understand performance.
-
So you want this: int64 Count[8]; void *Data[8]; but with std::vector you get this int64 Count0; void *Data0; int64 Count1; void *Data1; ... Now you go to access elements of your data arrays, and you never need to check the counts in that code, but you paid for the cache line.
- Show replies
New conversation -
-
-
A thanks, yes. It was obvious in the tweet, I just hadn't had my coffee yet.
-
No problem. Friends don't let friends use std :)
- Show 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.