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/2011-October/113963.html below:

[Python-Dev] Disabling cyclic GC in timeit module

[Python-Dev] Disabling cyclic GC in timeit module [Python-Dev] Disabling cyclic GC in timeit moduleNick Coghlan ncoghlan at gmail.com
Fri Oct 7 23:47:54 CEST 2011
On Fri, Oct 7, 2011 at 4:50 PM, Maciej Fijalkowski <fijall at gmail.com> wrote:
> Hi
>
> Can we disable by default disabling the cyclic gc in timeit module?
> Often posts on pypy-dev or on pypy bugs contain usage of timeit module
> which might change the performance significantly. A good example is
> json benchmarks - you would rather not disable cyclic GC when running
> a web app, so encoding/decoding json in benchmark with the cyclic GC
> disabled does not make sense.
>
> What do you think?

No, it's disabled by default for a reason (to avoid irrelevant noise
in microbenchmarks), and other cases don't trump those original use
cases.

A command line switch to leave it enabled would probably be reasonable, though.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

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