cost creation 代价生成
Because of the added creation cost, use direct buffers only for long-lived buffers, not short, one-time, throwaway buffers.
因为创建直接缓冲区所增加的成本,所以直接缓冲区只用于长生存期的缓冲区,而不用于短生存期、一次性且用完就丢弃的缓冲区。
To justify the cost of model creation and maintenance, you need to ensure that your model is highly useful.
为了让模型创建和维护方面的成本物有所值,需要确保模型非常有用。
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.
如果对象的使用频率不高,或者对象的创建或销毁成本不高,则对象池可能不是正确的策略。
应用推荐