node-frequent-time
v1.0.2
Published
Getting current time in high traffic
Downloads
2
Readme
node-frequent-time
Getting current time in high traffic
Purpose
Calling
new Date()
all the time can put some load on the cpu especially in high traffic. This module reduces the load by caching the current time.
Warning
Make sure to call
globa.gc();
every now and then to prevent memory leak.
Install
npm install node-frequent-time