You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
Apache Commons Pool 2.5.0 已发布,该版本包含一些新功能和变更,还从 Java 6 升级至了 Java 7,具体如下:
新特性
This also reverts the default behavior introduced by POOL-320.
变更
具体更改可点此查看:http://commons.apache.org/proper/commons-pool/changes-report.html
此版本相比 2.4.x 系列没有客户端代码方面的修改。此版本源代码和二进制包现已提供下载:http://commons.apache.org/proper/commons-pool/download_pool.cgi
Commons Pool组件提供了一整套用于实现对象池化的框架,以及若干种各具特色的对象池实现,可以有效地减少处理对象池化时的工作量,为其它重要的工作留下更多的精力和时间。
创建新的对象并初始化的操作,可能会消耗很多的时间。在这种对象的初始化工作包含了一些费时的操作(例如,从一台位于20,000千米以外的主机上 读出一 些数据)的时候,尤其是这样。在需要大量生成这样的对象的时候,就可能会对性能造成一些不可忽略的影响。要缓解这个问题,除了选用更好的硬件和更棒的虚拟 机以外,适当地采用一些能够减少对象创建次数的编码技巧,也是一种有效的对策。对象池化技术(Object Pooling)就是这方面的著名技巧,而Jakarta Commons Pool组件则是处理对象池化的得力外援。
使用示例:http://commons.apache.org/pool/examples.html
JavaDoc: http://commons.apache.org/proper/commons-pool/apidocs/index.html
The text was updated successfully, but these errors were encountered: