DEV Community

Discussion on: Finding And Fixing Node.js Memory Leaks: A Practical Guide

Collapse
 
kmaschta profile image
Kmaschta

You're right, it's better! But it will never be as fast as writing in memory.

Collapse
 
mogery profile image
Gergő Móricz

Explanation for people who are new to JS: writeFile is async, a.k.a. it doesn’t leave the execution waiting for the file to be written.