There is no generic threshold to consider categorising a file handling based on size and memory usage that I have come across, though this may be application specific. In general, any file larger than 100MB can be considered a large file and can be processed using fs.createReadStream()
instead of usual fs.readFile()
.