According to the characteristics of technology and economy of city untreated sewage source heat pump system, the mathematical models of annual costobject function are established.
If your objects are not used with high frequency or do not have a high creation or destruction cost, then object pooling might not be the right strategy.
如果对象的使用频率不高,或者对象的创建或销毁成本不高,则对象池可能不是正确的策略。
3
Whenever possible, avoid creating objects to prevent associated performance costs of calling the constructor, and subsequent cost of GC when an object reaches the end of its lifecycle.