Hypothetically speaking, when passing 2 or more values through to a simple timer handler, would I be better off using a struct over a hashtable? How about 3 or more? I guess I'm curious how intensive the initialization of the struct itself is, and when it becomes worthwhile to use them vs. a hashtable while performing smallish tasks. I'm using a custom allocator (thanks to Nestharus' awesome video tutorial ) and timerutils in array storage mode if that helps.
Presently, I've been going back through some of my older code, and kinda just eyeballing to see if there are tons of hashtable reads/writes being made. In some cases it's pretty obvious, and I love the way that structs streamline those systems, but with the more borderline scenarios described above, it's a lot less clear if making the transition will be worthwhile.
Presently, I've been going back through some of my older code, and kinda just eyeballing to see if there are tons of hashtable reads/writes being made. In some cases it's pretty obvious, and I love the way that structs streamline those systems, but with the more borderline scenarios described above, it's a lot less clear if making the transition will be worthwhile.