TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Efficient data transfer through zero copy in Java

53 点作者 mixmasteralan大约 13 年前

2 条评论

Rauchg大约 13 年前
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 未加载
rheide大约 13 年前
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 未加载