Re: Introducing XAR - SquashFS based mountable executables - Calling OS/Distro Maintainers

Barry Warsaw <[email protected]>
Newsgroups gmane.comp.python.distutils.devel
Message-ID <[email protected]>
On Jul 16, 2018, at 18:14, Nick Terrell <[email protected]> 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

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at https://mail.python.org/mm3/archives/list/[email protected]/message/WSKHUA75PKFKF3VKNU6ZF6OFLHR4FML2/
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEhBcVftvnPZ6sHlObEm61Y6dLBr8FAltOqTQACgkQEm61Y6dL
Br/Wqg//civaiST17OftWlqVVKwYcmVFPoJpk3DoML45JwRGem1P6v/p/VKz6Lp1
ijjLdzqdizCYHVOfmuJoZwhgtneoUSUAdcZaaaj5gCiTeN+H19/vGWvd9ggCTMTo
tmqtpJNoreotRh1EpHJNo9Qsazym8w4BBUtD8lnDoT3WsDcW69S0qHOpg50USJES
S3FFjd24ESwon/qumaBxYNl+QUuSY34KGXsEgzo26OphUkk/p/APHxOowUXimmjC
u4GV8e69x/mDwsRr0SUKicFqgqWW4B9pAi/Y57UGNc6UiMDG/k8HUPWlFblF9sYO
2a0PNaOin/09Tq/aAIxRrRGaMgm3ZNkPzNGaIhfS2uMEcqlhFoIn/7juOkWsY3cb
FdJ2kDtpuk8fBC2ovvIYsEU2697XMLUNw7yBwQdqpGKUM57LLF4Caln+FLTy99wM
TthNwnf7c7lyHQABNgcb4TMFRaO9xJ8oMZBsTacyoYR7Wil6vg4MzUdMy04pPQPh
/ShQnJgN50kf9joxuakH+gSx4K3fhzGfMikiCEAgmQwbgxLKCES3GPekaDZNCXE3
+PypMtDyUWyNn4pr2NT+w36VeTi8DykrhAtcbJHu8jq/433vRs8d/2bjUFtS3v9Z
MNtndIeOUi84kVcv2K37JTxc5OL7yHCxm9u4a8qHVtxM/9Bicrw=
=gJGm
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.