News for hackers. Stuff that matters.
Re:Run JavaScript on Cloudflare with Workers by sitepodmatt on Tuesday March 13, 2018 @10:00AM (#16576126)
How does a cold start perform, I'm guessing with sandboxing of v8 vs a whole new container, and deserialization of a single script into a free sandbox v8 slot (perhaps they store the AST or preJITed code for even faster start? - not familar with v8 internals) it is much faster than cold starting nodejs on AWS lambda?
Re:Run JavaScript on Cloudflare with Workers by kentonv on Tuesday March 13, 2018 @10:16AM (#16576255)
This is one of those questions I love answering. :)

It turns out V8 is very well-optimized for loading JavaScript quickly, since that's exactly what it needs to do when loading a web site with a user waiting.

We're seeing average cold start times under 5ms.

Re:Run JavaScript on Cloudflare with Workers by hashseed on Tuesday March 13, 2018 @01:34PM (#16577926)
There are some features in V8 to make loading a script even faster.

I'd be glad to connect over these features on twitter (same username). I implemented them.