that, and the load-order of modules is more predictable with sync loading. sometimes that matters.
Am Montag, 29. Juli 2013 18:09:26 UTC+2 schrieb Matt Sergeant: > > Because it returns the module.exports object so it can't. > > > On Mon, Jul 29, 2013 at 11:34 AM, Benjamin Pasero > <[email protected]<javascript:> > > wrote: > >> Is there a technical reason why node.js does not execute the require in >> parallel? >> >> On Monday, July 29, 2013 4:37:43 PM UTC+2, Ben Noordhuis wrote: >> >>> On Mon, Jul 29, 2013 at 3:48 PM, Matt <[email protected]> wrote: >>> > Did you think about a possibility of 4) redesign your application so >>> it's >>> > not loading 10k modules? That's an INSANE amount of dependencies. Even >>> > making them parallel in some way is still going to require thousands >>> of >>> > syscalls. In general I don't think it's going to be a priority for >>> node to >>> > optimise for startup time, but I could be wrong - I'm not a core team >>> > member. >>> >>> Well, we try to keep node.js snappy. But loading 10k files at >>> start-up is pretty out of the ordinary, I'm not sure it's worth the >>> time trying to optimize for edge cases like that. >>> >> -- >> -- >> 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]<javascript:> >> To unsubscribe from this group, send email to >> [email protected] <javascript:> >> 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] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- -- 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.
