A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-January/019255.html below:

[Python-Dev] eval() slowdown in 2.2 on MacOS X?

[Python-Dev] eval() slowdown in 2.2 on MacOS X? [Python-Dev] eval() slowdown in 2.2 on MacOS X?Skip Montanaro skip@pobox.com
Mon, 7 Jan 2002 11:27:17 -0600
    amk> test_longexp creates a big list expression and eval()'s it.  The
    amk> problem is that it takes an exceedingly long time to run, at least
    amk> more than half an hour (at which point she interrupted it).
    ...
    amk> changing REPS from 1000 to 50000.  1000 and 10000 ran fairly
    amk> quickly - under a minute.  However, 25000 took about 5 minutes and
    amk> 50000 took 23 minutes.
    ...
    amk> Any clues?

Try configuring using --with-pymalloc to see if Vladimir's Python-specific
object allocator helps.  Even with a gigabyte of RAM, perhaps the malloc
free list is getting badly fragmented, causing it to churn forever trying to
coalesce memory blocks.

-- 
Skip Montanaro (skip@pobox.com - http://www.mojam.com/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4