网站首页  英汉词典

请输入您要查询的英文单词:

 

单词 Object pool pattern
释义

Object pool pattern

中文百科

对象池模式

对象池(英语:object pool pattern)是一种设计模式 (计算机)。一个对象池是一组已经初始化过且可以使用的对象,而可以不用在有需求时创建和销毁对象。池的用户可以从池子中取得对象,对其进行操作处理,并在不需要时归还给池子而非销毁 而不是销毁它. 这是一种特殊的工厂对象.


若初始化、实例化的代价高,且有需求需要经常实例化,但每次实例化的数量较少的情况下,使用对象池可以获得显著的 性能提升。从池子中取得对象的时间是可预测的,但新建一个实例所需的时间是不确定。

英语百科

Object pool pattern 对象池模式

The object pool pattern is a software creational design pattern that uses a set of initialized objects kept ready to use – a "pool" – rather than allocating and destroying them on demand. A client of the pool will request an object from the pool and perform operations on the returned object. When the client has finished, it returns the object to the pool rather than destroying it; this can be done manually or automatically.

随便看

 

英汉网英语在线翻译词典收录了3779314条英语词汇在线翻译词条,基本涵盖了全部常用英语词汇的中英文双语翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2024 encnc.com All Rights Reserved
更新时间:2025/6/23 17:34:39