[Distutils] entry points PEP

Vinay Sajip vinay_sajip at yahoo.co.uk
Fri Jul 19 11:24:56 CEST 2013


Robert Collins <robertc <at> robertcollins.net> writes:

> So my question here would be - can we make it faster? We have just
> been diagnosing a performance problem in nova due to rootwrap being a
> pkg_resources scripts entry point : just getting to the first line of
> main() takes 200ms, and we make dozens of subprocess calls (has to be,
> we're escalating privileges) to the script in question : that time is
> nearly entirely doing introspection of metadata from disk.

Is there more detailed information about where the time is being spent? e.g. 
os.stat(), file I/O, parsing of the actual metadata files, load_entry_point() 
etc.

Regards,

Vinay Sajip



More information about the Distutils-SIG mailing list