Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix memory usage under heavy load in expressWinston.logger #164
Create a lodash template for each request requires a lot of memory for nothing.
The following measurement shows that while running, this save a lot of memory.
Say you have the following application: https://gist.github.com/Kmaschta/e3d0937334ac9fcccbbaf5c20b63627a
Install and run the server:
yarn install node --inspect index.js
And send it a huge number of requests:
siege -r 1000 -c 100 http://localhost:3000