News for hackers. Stuff that matters.
Re:fs.promises.readFile is 40% slower than fs.readFile by beaconstudios on Wednesday March 03, 2021 @05:22PM (#26335588)
Not enough to add 40% overhead to a 1mb file read, I can tell you that much.
Re:fs.promises.readFile is 40% slower than fs.readFile by javajosh on Wednesday March 03, 2021 @07:43PM (#26337092)
It depends. If disks got so fast that function call overhead starts to dominate, then you might see an effect like this. But I have to imagine reading from an SSD is still 1000x slower (at least) than a function invocation in Javascript.
Re:fs.promises.readFile is 40% slower than fs.readFile by beaconstudios on Wednesday March 03, 2021 @08:24PM (#26337408)
I don't see that basically ever being the case.