I did a benchmark and the first change actually made the performance worse by up to 10% on my M1 Macbook. The second change on the other hand only increased performance by about 8%. Maybe its an ARM64 thing though.
Also, my default implementation following the tutorial so far was about 50% times faster than SimpleLanguage by default. I never got the JS one working as the library kept halting the entire benchmark.
I did a benchmark and the first change actually made the performance worse by up to 10% on my M1 Macbook. The second change on the other hand only increased performance by about 8%. Maybe its an ARM64 thing though.
Also, my default implementation following the tutorial so far was about 50% times faster than SimpleLanguage by default. I never got the JS one working as the library kept halting the entire benchmark.