Related: https://github.com/joyent/node/pull/3271
On Wed, May 16, 2012 at 8:32 AM, Tim Caswell <[email protected]> wrote: > The original fs.readFile I wrote worked somewhat like this. I don't know > the reasons it was rewritten to use streams instead. I had always assumed > it was to save code and be more reliable. > > Regarding performance, can you measure the difference, has it caused > problems is a real app? > > And I wouldn't worry about the max size. You probably shouldn't be using > a buffering readFile for files that big. > > > On Wed, May 16, 2012 at 10:23 AM, Joran Greef <[email protected]> wrote: > >> Granted, max buffer size on Mac is about (42949672 * 25) bytes and this >> doesn't deal with files bigger than that (about a GB), but then I think >> neither does fs.readFile (perhaps this needs to be fixed). > > >
