4 ms·
Were you using gcc? I wouldn't be surprised if e.g. MSVC didn't perform that optimization since it doesn't have the pure function attribute.
by yuvi 16y ago
Were you using gcc?
I wouldn't be surprised if e.g. MSVC didn't perform that optimization since it doesn't have the pure function attribute.