On Jul 16, 2018, at 18:14, Nick Terrell <nickrterr...@gmail.com> wrote:
> 
> I collected the XAR benchmark numbers. I spent some time today
> investigating what
> exactly is causing the difference between native and XAR start times. The 
> native
> installation I was benchmarking against used 
> `pkg_resources.load_entry_point()`
> to run the script, while XAR called the entry point directly.

> black: 0.171 s (vs 0.208 for XAR)
> jupyter-nbextension: 0.165 s (vs 0.179 s for XAR)
> 
> Without the pkg_resources difference we have a small overhead over
> native installs.

Thanks Nick, that definitely jives with our analysis.  pkg_resources can be a 
hidden source of significant overhead, imposed at import time.  That’s the main 
reason why importlib.resources was born.

Cheers,
-Barry

Attachment: signature.asc
Description: Message signed with OpenPGP

--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/mm3/archives/list/distutils-sig@python.org/message/WSKHUA75PKFKF3VKNU6ZF6OFLHR4FML2/

Reply via email to