Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Rauchg
on March 11, 2012
|
parent
|
context
|
favorite
| on:
Efficient data transfer through zero copy in Java
You might want to read this interesting (albeit slightly outdated) post about leveraging `sendfile` in Node.JS by Peter Griess:
http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/
mikeknoop
on March 11, 2012
[–]
Is this still best practice? What's the more "up to date" method?
justincormack
on March 11, 2012
|
parent
[–]
splice and tee are the newer kernel interfaces, sendfile is now implemented using them.
ntoshev
on March 11, 2012
|
root
|
parent
[–]
Apparently these primitives haven't found their way to the Node.js land yet... and sendfile is still undocumented.
justincormack
on March 11, 2012
|
root
|
parent
[–]
Not really surprising given the cross platform focus in Node now.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/