2 ms·
I don’t get why bool_data couldn’t be an array of two strings with x indexing into it…
by saagarjha 6y ago
I don’t get why bool_data couldn’t be an array of two strings with x indexing into it…
- azernik 6y agoTwo pointer dereferences are slower than one - got to read from the top-level array, then use the pointer to read from the individual string. This way you can figure out the address of the string with about four very cheap instructions and zero memory accesses. Plus cache locality.