Remove max_old_space and use as much as we can

process.memoryUsage() is our friend. also, with --expose-gc we
can use global.gc(). we don't use it yet though

part of #626
This commit is contained in:
Girish Ramakrishnan
2019-04-02 11:45:46 -07:00
parent 9063e8f4a4
commit 5a4c2a4974

View File

@@ -1,5 +1,5 @@
#!/bin/bash
':' //# comment; exec /usr/bin/env node --max_old_space_size=300 "$0" "$@"
':' //# comment; exec /usr/bin/env node --expose-gc "$0" "$@"
// to understand the above hack read http://sambal.org/2014/02/passing-options-node-shebang-line/