缓存和对象池技术均可以减少临时对象的创建。
Caching and pooling can be helpful techniques to reduce temporary object creation.
只 有那些生存周期很长的对象,才适合使用对象池技术,因为对它们进行垃圾回收的成本很高。
It's the long-lived objects, such as ones you might pool, that are expensive to garbage collect.
图3中没有看到的是对象池、自动事务处理、安全性以及EJB技术提供的所有其他好东西。
What you don't see in Figure 3 is object pooling, automatic transaction processing, security, and all the other good things that EJB technology provides.
应用推荐