3 ms·
The irony here is you'd lose serious performance since you're not using sendfile(2).
by superjared 16y ago
The irony here is you'd lose serious performance since you're not using sendfile(2).
- shawndumas 16y agoyou can now use sendfile; as ry says: "A portable sendfile [...], thanks to Marc Lehmann. It's undocumented because it's an unstable API for now. I wouldn't mind a contribution for a test/simple/test-sendfile.js" [1]. . Also see Using sendfile(2) with NodeJS [2]. ---- [1]: http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/12130 http://comments.gmane.org/gmane.comp.lang.javascript.nodejs/... [2]: http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/ http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/