joyent/node — pull request #3271 by isaacs (2012-05-16 01:07:54+00:00)
Title: Fast readfile

In joyent/node#3268, @brendangregg pointed out that fs.readFile is not as optimized as it could be.

The first commit adds a benchmark. The second makes it go a bit faster.

The third completely destroys the benchmark on the high-concurrency use-case, but does so in a rather dubious manner. (See the commit message for details.)