Jetty5和Jetty6之间的代码大重构

最近在看两篇介绍Jetty的文章:

#3 《Jetty6指南书》来自javaeye jimichan的大作:
http://jimichan.iteye.com/blog/601165
#4 来自灰狐的Jetty源码分析:http://docs.huihoo.com/jetty/1.html

发现里面的内容大不一样,一篇文章是基于6.1.22,一篇是基于5.1.5,然后就看了一下两个版本的代码,果然是有很大的重构。

那个change log里面这样表述:

 

Jetty-6.0.0ALPHA0
 * Totally rearchitected and rebuilt, so 10 years of cruft could be removed!


 * Improved "dependancy injection" and "inversion of control" design of components
 * Improved "interceptor" design of handlers
 * Smart split buffer design allows large buffers to only be allocated to active connections. The
   resulting memory savings allow very large buffers to be used, which increases the chance of efficient
   asynchronous flushing and of avoiding chunking.
 * Optional use of NIO Buffering so that efficient direct buffers and memory mapped files can be
   used.
 * Optional use of NIO non-blocking scheduling so that threads are not allocated per connection.
 * Optional use of NIO gather writes, so that for example a HTTP header and a memory mapped
 * file may be sent as sent is a single operation.
 - Missing Security
 - Missing Request Dispatchers
 - Missing web.xml based configuration
 - Missing war support

 

具体的Jetty1到Jetty6的代码演进过程可查看:

http://svn.codehaus.org/jetty/jetty/branches/jetty-6.1/VERSION.txt

 

从这样一个长的列表,从1996年一直到2010年年底,也足以看出老外对于开源事业的执着,非常值得学习。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值