Which snippet is faster? I'm pretty sure B is, but I'm not sure if the extra var dec is hurting.
Code:// Snippet A for(x = 0; x < 1000; x++) { buff1[x * 10] = x; buff2[x * 10] = x; }Code:// Snippet B for(x = 0; x < 1000; x++) { DWORD nx = x * 10; buff1[nx] = x; buff2[nx] = x; }