News for hackers. Stuff that matters.
Re:fs.promises.readFile is 40% slower than fs.readFile by coldtea on Thursday March 04, 2021 @02:52AM (#26339831)
That's normal, as the rockets don't run an OS, run a specific , very explicitly defined, embedded program, with known states.

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.

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.
Re:fs.promises.readFile is 40% slower than fs.readFile by junon on Friday March 05, 2021 @04:00AM (#26354588)
Ooh that's better.