src: improve startup time
authorEvan Lucas <evanlucas@me.com>
Fri, 21 Aug 2015 09:15:55 +0000 (04:15 -0500)
committerEvan Lucas <evanlucas@me.com>
Fri, 21 Aug 2015 19:13:32 +0000 (14:13 -0500)
commit1c20b87d1979e741f1f1698f8120169d32a779ae
tree53739c659c522c80f8b690076513d838a5c83f37
parent5ce0f63fa6eb0fbc1bc42581dd78c3001c41ceb5
src: improve startup time

Previously, V8:SetFlagsFromCommandLine was being called even if v8_argc
was 0. This change prevents that from being called unless v8 arguments
are actually passed.

Improves startup time by about 5%.

PR-URL: https://github.com/nodejs/node/pull/2483
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
src/node.cc