Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-04-30 00:48:03 +0300
committerAnna Henningsen <anna@addaleax.net>2017-05-03 16:29:36 +0300
commit2bf461e6f502b1135f66ceff96f79152eccf1dc7 (patch)
treed26e9ba50e870fdd22197dec44348be9cede331f /doc/api/vm.md
parent896be833c87a6992cea25ba95d2395313c33e0b2 (diff)
doc: document vm timeout option perf impact
Mention that the `timeout` option has a noticeable performance impact. Fixes: https://github.com/nodejs/node/issues/10453 PR-URL: https://github.com/nodejs/node/pull/12751 Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r--doc/api/vm.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index aaf53b73c40..a8817ebacdf 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -125,6 +125,10 @@ console.log(util.inspect(sandbox));
// { animal: 'cat', count: 12, name: 'kitty' }
```
+*Note*: Using the `timeout` or `breakOnSigint` options will result in new
+event loops and corresponding threads being started, which have a non-zero
+performance overhead.
+
### script.runInNewContext([sandbox][, options])
<!-- YAML
added: v0.3.1