2 ms·
Each hash input generates a code sequence that has to be executed 1000s of times in an inner loop. The code sequence is different for each input meaning there
by optimiz3 7y ago
Each hash input generates a code sequence that has to be executed 1000s of times in an inner loop. The code sequence is different for each input meaning there is no reason to save the JITted code as the next hash will use a new code sequence which you cannot predict.
data = input;
for (1..10)
{
JITtedCode = CodeGen(CryptographicHash(data));
for (1..100000)
{
data = JITtedCode(data);
}
data = CryptographicHash(data);
}
output = data;