Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The article updated to remove the cruft you noted. It dropped the 1M memory substantially

Promise timers are now packaged by node at least, they allocate about 20% less memory for the 1mil test (on v18).

    const { setTimeout } = require('node:timers/promises')
https://nodejs.org/api/timers.html#timers-promises-api


Oh I didn't know that! Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: