core-lang / core

The Core Programming Language
https://core-lang.dev
MIT License
45 stars 1 forks source link

benchmark and optimize string initialization #38

Open soc opened 2 years ago

soc commented 2 years ago

During string initialization we first copy the bytes and then traverse the bytes again to compute the hashcode.

Investigate if it's worthwhile to roll hash computation into the copy loop. (This will involve building the necessary instructions ourselves on x86 and arm64.)