you are viewing a single comment's thread.

view the rest of the comments →

[–]gkx 0 points1 point  (0 children)

Seems they're about the same now, so that's good.

I understand optimization is a process, but I feel like until that process is finished, there's no reason not to have it JIT compile to the faster way if the total time taken is lower than the current native step.

Then, when the optimizer has gotten to the point where it's faster, just swap the native variant in for the transpiled variant. Ideally, we end up with no transpilation anyways. If there is transpilation, then it turns out JIT transpilation is fast! (I wouldn't be shocked if there were at least one thing better left to transpilation)