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
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:
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
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14057
___
___
Python-bugs-list
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
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
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
É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
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14057
___