读书人

Jetty5跟Jetty6之间的代码大重构

发布时间: 2012-12-20 09:53:21 作者: rapoo

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年年底,也足以看出老外对于开源事业的执着,非常值得学习。

1 楼 kimmking 2011-02-12 jetty 8.0.0 M3都出了 2 楼 sangmin214 2011-02-13 kimmking 写道jetty 8.0.0 M3都出了
呵呵,版本老的好处是文档多点。

读书人网 >编程

热点推荐