"Dieter Maurer" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| We observed similar very bad behaviour -- in a Web application server.
| Apparently, the standard behaviour is far from optimal when the
| system contains a large number of objects and occationally, large
| numbers of objects are created in a short time.
| We have seen such behaviour during parsing of larger XML documents, for
| example (in our Web application).

Does the standard alternative behavior of temporarily turning cyclic gc off 
solve your problem?

Can this alternative be made easier by adding a context manager to gc 
module to use with 'with' statements?  Something like

with gc.delay() as dummy:
   <block>

with exit invoking the collector (or make that a delay keyword param?)

Do the docs need some improvement in this area?

tjr



--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to