, ( 20 ). , , , ?
, , 4 ( 8 64 ) ( ). . , . , , ( , , , " " ).
I have no idea what this will do with performance because you can explicitly select values โโfor an array of type instead of an array of reference type. However, it is sometimes useful to make a decision simpler than harder. This solution can also improve cache locality, as you are talking about random access to a large array. Therefore, this array will not fit into the CPU cache, and you will have many cache misses.
source
share