0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 23:16:30 +01:00
nodejs/test/sequential
Ben Noordhuis fdbb6dd042 module: speed up package.json parsing
If the package.json does not contain the string '"main"', skip parsing
it to JSON.

Note that this changes the behavior of the module loader in the presence
of package.json files that don't contain legal JSON.  Such files used to
throw an exception but now they are simply ignored unless they contain a
"main" property.

To me, that seems like a good trade-off: I observe a 25% reduction in
start-up time on a medium-sized application[0].

[0] https://github.com/strongloop/sls-sample-app

PR-URL: https://github.com/nodejs/node/pull/15767
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-11-15 12:00:25 +01:00
..
sequential.status test: flag known flake 2017-11-11 12:00:04 +05:30
test-async-wrap-getasyncid.js inspector: reimplement JS binding 2017-10-02 21:38:15 -07:00
test-benchmark-buffer.js test: fix flaky test-benchmark-buffer 2017-10-18 12:00:04 -07:00
test-benchmark-child-process.js test: create shared runBenchmark function 2017-09-11 11:26:15 -04:00
test-benchmark-http.js test: reduce test-benchmark-http iterations 2017-10-12 09:23:34 -07:00
test-benchmark-net.js test: create shared runBenchmark function 2017-09-11 11:26:15 -04:00
test-buffer-creation-regression.js
test-child-process-emfile.js
test-child-process-execsync.js child_process: restore exec{File}Sync error props 2017-10-23 14:09:11 +02:00
test-child-process-fork-getconnections.js
test-child-process-pass-fd.js
test-cluster-inspect-brk.js
test-crypto-timing-safe-equal.js crypto: migrate timingSafeEqual to internal/errors 2017-10-26 07:47:16 -07:00
test-debug-prompt.js test: refactor test-debug-prompt 2017-09-13 17:12:57 -03:00
test-debugger-debug-brk.js test: added a test comment 2017-10-11 22:55:15 -07:00
test-debugger-repeat-last.js test: continue normalizing fixtures use 2017-08-27 21:14:34 -03:00
test-deprecation-flags.js test: use fixtures module over fixturesDir 2017-10-15 00:04:54 +08:00
test-dgram-bind-shared-ports.js
test-dgram-implicit-bind-failure.js test: move common.PORT tests to sequential 2017-09-10 23:56:30 -03:00
test-dgram-pingpong.js
test-fs-readfile-tostring-fail.js test: skip test due to file size limit 2017-10-19 09:55:55 -04:00
test-fs-watch.js test: refactor test/sequential/test-fs-watch.js 2017-08-01 10:05:17 -07:00
test-http2-session-timeout.js http2: make --expose-http2 flag a non-op 2017-09-28 02:01:06 -03:00
test-http2-timeout-large-write-file.js test: check session timeout in http2 2017-11-07 12:19:15 -05:00
test-http2-timeout-large-write.js http2: fix several timeout related issues 2017-10-29 10:01:16 -07:00
test-http-keep-alive-large-write.js net: fix timeouts during long writes 2017-10-21 09:49:02 -04:00
test-http-keepalive-maxsockets.js test: move test-http-keepalive-maxsockets to sequential 2017-11-07 16:34:55 +00:00
test-http-regr-gh-2928.js
test-http-server-consumed-timeout.js test: skip test if host is too slow 2017-10-04 09:19:26 -07:00
test-http-server-keep-alive-timeout-slow-client-headers.js
test-http-server-keep-alive-timeout-slow-server.js
test-http-writable-true-after-close.js test: fix test-https-writable-true-after-close 2017-10-01 19:44:48 -03:00
test-https-keep-alive-large-write.js net: fix timeouts during long writes 2017-10-21 09:49:02 -04:00
test-init.js test: change fixturesDir to fixtures.path 2017-10-10 21:39:21 -07:00
test-inspector-async-call-stack.js inspector: track async stacks when necessary 2017-10-29 09:38:37 -07:00
test-inspector-async-hook-setup-at-inspect-brk.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-async-hook-setup-at-signal.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-async-stack-traces-promise-then.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-async-stack-traces-set-interval.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-bindings.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-break-e.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-break-when-eval.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-contexts.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-debug-brk-flag.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-debug-end.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-enabled.js test: move inspector tests to parallel/sequential 2017-10-17 19:35:50 -04:00
test-inspector-exception.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-invalid-args.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-ip-detection.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-module.js lib: improve the usage of TypeError[INVALID_ARG_TYPE] 2017-11-12 11:04:06 -08:00
test-inspector-not-blocked-on-idle.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-open.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-overwrite-config.js lib: guard inspector console using process var 2017-11-13 08:26:38 +01:00
test-inspector-port-cluster.js test: pass process.env to child processes 2017-11-10 09:24:17 +11:00
test-inspector-port-zero-cluster.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-port-zero.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-scriptparsed-context.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector-stop-profile-after-done.js test: pause child until parent is ready 2017-11-02 14:32:23 -04:00
test-inspector-stops-no-file.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-inspector.js test: fix inspector tests 2017-10-17 23:10:20 -07:00
test-module-loading.js module: speed up package.json parsing 2017-11-15 12:00:25 +01:00
test-net-better-error-messages-port.js
test-net-connect-local-error.js
test-net-GH-5504.js
test-net-listen-shared-ports.js
test-net-localport.js test: move common.PORT tests to sequential 2017-09-10 23:56:30 -03:00
test-net-reconnect-error.js
test-net-server-address.js
test-net-server-bind.js
test-next-tick-error-spin.js
test-pipe.js
test-process-warnings.js test: use fixtures in test-process-warnings 2017-10-12 18:18:39 -07:00
test-readline-interface.js test: fix flaky test-readline-interface 2017-09-03 17:12:56 -03:00
test-regress-GH-784.js test: fix ordering of strictEqual actual/expected 2017-10-13 12:28:52 -07:00
test-regress-GH-877.js
test-regress-GH-1697.js
test-regress-GH-1726.js
test-regress-GH-4015.js test: replaces fixturesDir with fixtures methods 2017-10-13 20:26:38 +08:00
test-regress-GH-4027.js
test-repl-timeout-throw.js
test-require-cache-without-stat.js test: changed fixtures require 2017-10-09 02:13:19 -07:00
test-stream2-fs.js test: use ES6 classes instead of util.inherits 2017-11-12 10:29:45 -08:00
test-stream2-stderr-sync.js
test-stream-writable-clear-buffer.js stream: fix disparity between buffer and the count 2017-10-01 23:37:15 -03:00
test-timers-block-eventloop.js test: update test-timers-block-eventloop.js 2017-10-29 12:46:19 -04:00
test-timers-blocking-callback.js test: make timers-blocking-callback more reliable 2017-08-20 15:41:18 -07:00
test-util-debug.js
test-vm-timeout-rethrow.js
testcfg.py