Re:fs.promises.readFile is 40% slower than fs.readFile
by capableweb on Thursday March 04, 2021 @05:09AM
(#26340660)
I think the ultimate fact here is that you have a specific runtime period. Once the missile has reached its destination, you have zero memory and the runtime disappears together with the missile.
Re:fs.promises.readFile is 40% slower than fs.readFile
by junon on Thursday March 04, 2021 @08:20AM
(#26341956)
The ultimate free().
Re:fs.promises.readFile is 40% slower than fs.readFile
by panda88888 on Friday March 05, 2021 @01:27AM
(#26353508)
A literal destructor.
It's not going to malloc randomly...
In fact, it's common in real time applications to pre-allocate everything you need at the start of the program or use static memory, and never allocate afterwards.