“Xoring an uninitialized variable with whatever other source of entropy you already have cannot hurt”, the conventional thinking goes. Conventional thinking is wrong. Your typical modern compiler deletes the code that gathers the original entropy, since it is only going to be xored with an uninitialized variable.
The sparse array in the OP can't be optimized in this way at compile time.
Comments
The sparse array in the OP can't be optimized in this way at compile time.