How to debug random CPU spikes?

Thanks a lot for your explanation @KentonVarda so there is nothing to worry about after all!

It’s not a very large worker. The minimized js file is 153kB which should be reduced to less than 100kB with the final compression, way below the 1MB limit.

It may be way below the limit, but 153kB of JavaScript is still quite a bit of code and may indeed take several milliseconds for V8 to compile. So I think that’s a likely explanation here.


Duly noted!

Ohh, sweet lovely V8. Reminds me of

JavaScript insanity :smile:

1 Like

Lazy parsing is great, though, otherwise cold start time would be much longer!

I get your point, nonetheless, JavaScript (or better V8) is doing some hacks which would be unheard of on other platforms.