[issue11051] Improve Python 3.3 startup time

2012-07-22 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11051] Improve Python 3.3 startup time

2012-05-16 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This is out of date now that importlib is the default import system.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

I opened the issue #14057 for the sysconfig parser.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

Using the following patch, "./python -s -c pass" is 2x faster than without the 
patch!

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:
 ENABLE_USER_SITE = check_enableusersite()
-known_paths = addusersitepackages(known_paths)
+if ENABLE_USER_SITE:
+known_paths = addusersitepackages(known_paths)
 known_paths = addsitepackages(known_paths)
 if sys.platform == 'os2emx':
 setBEGINLIBPATH()

-s with the patch doesn't import the sysconfig module. So if we want to speed 
up Python, the first step is to optimize it, at least the function getting the 
user site packages directory.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11051] Improve Python 3.3 startup time

2012-02-19 Thread STINNER Victor

STINNER Victor  added the comment:

I changed the title of the issue because what matters is the total startup 
time, not how it is improved :-)

--
title: system calls per import -> Improve Python 3.3 startup time

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com