[issue14057] Speedup sysconfig startup

2013-01-02 Thread STINNER Victor
STINNER Victor added the comment: I'm not really convinced by my patch. It looks like a quick hack. Nick's PEP 432 looks more promising (in speed), simple and safer. So I prefer to close this issue. -- resolution: - rejected status: open - closed

[issue14057] Speedup sysconfig startup

2012-02-21 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Updated patch: continue to simplify the config parser. Using this patch, Python startup is ~20% faster on my computer. Use http://bugs.python.org/file24447/bench_startup.py to measure startup time. -- Added file:

[issue14057] Speedup sysconfig startup

2012-02-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file24572/sysconfig_parser.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___

[issue14057] Speedup sysconfig startup

2012-02-20 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___ ___ Python-bugs-list

[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@gmail.com: On my laptop, start Python compiled in debug mode takes 600 ms. Half of this time is spend in the site module. And most of this time is spend in load the sysconfig module, which parse sysconfig.cfg, just to get the user site packages

[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: To speed up python -s, the following patch avoids loading the sysconfig module: diff --git a/Lib/site.py b/Lib/site.py --- a/Lib/site.py +++ b/Lib/site.py @@ -518,7 +518,8 @@ def main(): known_paths = removeduppaths() if

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___ ___ Python-bugs-list

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The site.getusersitepackages, site.addusersitepackages and co. functions all call one function which makes sure site.USER_SITE is set according to envvars and command-line options; under python -s, addusersitepackages will not add the user site

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___