Hi Ryan, long time no chat. On Tue, Jul 30, 2013 at 10:15 PM, Ryan Dahl <[email protected]> wrote: > On Tue, Jul 30, 2013 at 5:52 AM, Ben Noordhuis <[email protected]> wrote: >> That said, I don't think I/O will be your only bottleneck when loading >> 10k JS files (unless none of those files are in the operating system's >> file cache, then I/O will probably dominate). I expect that V8 will >> spend a non-negligible amount of CPU time parsing and compiling all >> that source code. > > Seems like a case where precompiled JS files would help. We did some > work on this at some point investigating whether V8's snapshot > facility could be extended to Node's library or even user code. My > vague memory of the conclusion was: it would be very difficult but > perhaps doable.
Pre-compiling has some limitations. IIRC, the generated code must be < 1 MB and it's not subject to the same optimizations as regular JS code. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
