8 ms·
Specialisation in JavaScript JITs make these faster, since they don't even compile in that supporting code. Whereas the builtin ones implemented in C++ do keep
by illumen 12y ago
Specialisation in JavaScript JITs make these faster, since they don't even compile in that supporting code.
Whereas the builtin ones implemented in C++ do keep all the code in there.
This is why even full implementations written in JavaScript can be faster than C++.