summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-04-29 23:48:03 +0200
committerAnna Henningsen <anna@addaleax.net>2017-05-03 15:29:36 +0200
commit2bf461e6f502b1135f66ceff96f79152eccf1dc7 (patch)
treed26e9ba50e870fdd22197dec44348be9cede331f /doc
parent896be833c87a6992cea25ba95d2395313c33e0b2 (diff)
downloadandroid-node-v8-2bf461e6f502b1135f66ceff96f79152eccf1dc7.tar.gz
android-node-v8-2bf461e6f502b1135f66ceff96f79152eccf1dc7.tar.bz2
android-node-v8-2bf461e6f502b1135f66ceff96f79152eccf1dc7.zip
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')
-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 aaf53b73c4..a8817ebacd 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