TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Efficient data transfer through zero copy in Java

53 pointsby mixmasteralanabout 13 years ago

2 comments

Rauchgabout 13 years ago
You might want to read this interesting (albeit slightly outdated) post about leveraging `sendfile` in Node.JS by Peter Griess:<p><a href="http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/" rel="nofollow">http://blog.std.in/2010/09/09/using-sendfile-with-nodejs/</a>
评论 #3689784 未加载
rheideabout 13 years ago
It's a nice idea, but I wonder about the use cases. How often would a Java webserver serve a file from disk without modifying it along the way? If performance is an issue then you'd serve the really static files with nginx (or a similar alternative), and every other file (jsp templates etc.) would be read in memory before being sent on.<p>(Note that I'm not questioning the technique, I just don't entirely agree on the way the article portrays the benefit of this method in webservers.)
评论 #3690113 未加载
评论 #3689734 未加载
评论 #3689360 未加载
评论 #3689426 未加载