Content deleted Content added
changed "and not the memory that these objects use for they content" to "and not the memory that these objects use for their content" |
|||
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 in modern languages with garbage collector the object allocation is relatively fast - the operator "new" needs only 10 instructions or about when than classic "new" - "delete" pair requires hundreds of them as it does more complex work. Also, the most of garbage collectors scan "live" object references and not the memory that these objects use for
== Examples ==
|