News for hackers. Stuff that matters.
Re:fs.promises.readFile is 40% slower than fs.readFile by eternalban on Wednesday March 03, 2021 @10:09PM (#26338151)
Eminently reasonable: dispensing with memory management (allocate/gc) for an embedded real-time missile guidance system. It may have even had static memory layout which likely further improves performance.
Re:fs.promises.readFile is 40% slower than fs.readFile by willbudd on Wednesday March 03, 2021 @10:18PM (#26338204)
I'd be inclined not to use the heap at all though in that case. Just preallocate static arrays in each location.