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 
directory.

Attached patch adds a copy of configparser.RawConfigParser, specialized to 
parse sysconfig.cfg. Using this patch, Python startup is 25% faster (I didn't 
check in release mode).

----------
files: sysconfig_parser.patch
keywords: patch
messages: 153735
nosy: haypo, neologix, pitrou
priority: normal
severity: normal
status: open
title: Speedup sysconfig startup
type: performance
versions: Python 3.3
Added file: http://bugs.python.org/file24572/sysconfig_parser.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14057>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to