Object pooling is the practice of avoiding allocation overhead by not allowing objects to be garbage collected. Typically, this is done by having the program reuse objects instead of allocating new ones. This is accomplished by keeping dead object references in a pool to prevent them from being garbage collected. Object pooling is generally discouraged since it interferes with GC heuristics and will make short-lived objects seem like long-lived ones to the memory system.
3.138.69.163