Speedup foldl over bytes #2

Merged
jbwdevries merged 1 commits from optimize_fold_bytes_inline_subscript_bytes_call into master 2022-08-21 13:39:44 +00:00

1 Commits

Author SHA1 Message Date
Johan B.W. de Vries
5ad5a9c064 Speedup foldl over bytes
Prior to this PR, the compiler would call stdlib.types's
__subscript_bytes__.

However, that function performs some checks we do not need.

After this MR, folding iterates directly over the bytes
memory, saving the memory access checks and the function
calls. This gets us a speedup of about 43% less CPU time
used on Firefox.

Also, by default, the CRC32 page runs a shorter timing test.
2022-08-21 15:38:11 +02:00