/
githubmirror
/
meteor
Обзор
Документация
Войти
/
githubmirror
/
meteor
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
devel
tools/utils/gc.js
10 строк
434 B
Ben Newman
Increase garbage collection throttling delay.
19 окт 2017, 18:31
Не верифицирован
19 окт 2017, 18:31
1389db4
Код
Авторство
О чём код?
import { throttle } from "underscore"; export const requestGarbageCollection = // For this global function to be defined, the --expose-gc flag must // have been passed to node at the bottom of the ../../meteor script, // probably via the TOOL_NODE_FLAGS environment variable. typeof global.gc === "function" // Restrict actual garbage collections to once per second. ? throttle(global.gc, 1000) : function () {};