Content deleted Content added
No edit summary |
No edit summary |
||
Line 24:
== Criticism ==
Some publications do not recommend using object pooling, especially for objects that only use memory and hold no external resources [http://www.ibm.com/developerworks/java/library/j-jtp11253/]. Opponents usually say that object allocation is relatively fast in modern languages with garbage collectors; while the operator "new" needs only 10 instructions, the classic "new" - "delete" pair found in pooling designs requires hundreds of them as it does more complex work. Also,
== Examples ==
|