[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
Changes by STINNER Victor : Removed file: http://bugs.python.org/file24572/sysconfig_parser.patch ___ Python tracker ___ ___ Python-bugs-list

[issue14057] Speedup sysconfig startup

2012-02-21 Thread STINNER Victor
STINNER Victor 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: http://bugs.python.org/file24595/sysco

[issue14057] Speedup sysconfig startup

2012-02-20 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Éric Araujo
Éric Araujo 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 dir to sys.path,

[issue14057] Speedup sysconfig startup

2012-02-19 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor
STINNER Victor 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 ENABLE_USER_SITE is None:

[issue14057] Speedup sysconfig startup

2012-02-19 Thread STINNER Victor
New submission from STINNER Victor : 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 directory. Attached pa