Re: Tremendous slowdown due to garbage collection



andreas.eisele@xxxxxxxxx schrieb:
which made me suggest to use these as defaults, but then
Martin v. Löwis wrote that

No, the defaults are correct for typical applications.

At that point I felt lost and as the general wish in that thread was
to move
discussion to comp.lang.python, I brought it up here, in a modified
and simplified form.

Martin said that the default settings for the cyclic gc works for most
people. Your test case has found a pathologic corner case which is *not*
typical for common application but typical for an artificial benchmark.
Python is optimized for regular apps, not for benchmark (like some video
drivers).

By the way you shouldn't use range for large ranges of more than a
thousand items. xrange() should be faster and it will definitely use
much less memory - and memory Python 2.5 and older will never release
again. I'm going to fix the issue for Python 2.6 and 3.0.

Christian

.



Relevant Pages

  • Re: On Whose Desktop
    ... Leung, Dino Viehland (core developer of IronPython), Titus Brown, Ivan ... Any women in Python you could ask - how about Anna Ravenscroft? ... I hope *everyone* knows that Martin was the winner of this year's Frank ...
    (comp.lang.python)
  • Re: undefined symbol: PyUnicodeUCS4_FromUnicode
    ... When I removed the python stuff in /usr ... Martin v. Löwis wrote: ... > Bill Hodges wrote: ... >> Python then compiled to UCS4 ...
    (comp.lang.python)
  • Re: using mmap on large (> 2 Gig) files
    ... this is a known limitation of Python 2.4: ... NumPy uses the mmap object and I saw a paper at SciPy 2006 that used Python 2.5 + mmap + numpy to do some pretty nice and relatively fast manipulations of very large data sets. ... the very useful changes by Martin have seen more testing than he is probably aware of. ...
    (comp.lang.python)
  • Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler
    ... Martin v. Löwis wrote: ... >> Answer from people which do not respect coherence of writings? ... The python team should provide the fundamental infrastructure for the ...
    (comp.lang.python)
  • Re: Tremendous slowdown due to garbage collection
    ... At that point I felt lost and as the general wish in that thread was ... Martin said that the default settings for the cyclic gc works for most ... typical for common application but typical for an artificial benchmark. ... Python is optimized for regular apps, not for benchmark (like some video ...
    (comp.lang.python)