A good place to use a Pool is in situations where many (noncontiguous) small objects may be allocated on the heap, or if allocation and deallocation of the same-sized objects happens repeatedly.

  • 使用内存池的一个好地方是,要在堆上分配多个(非连续的)小型对象的情形,或者是对相同大小的对象的分配和释放反复发生的情形。
目录 查词历史