[openstack-dev] [all][oslo][clients] Let's speed up start of OpenStack libs and clients by optimizing imports with profimp

Brant Knudson blk at acm.org
Mon Apr 6 14:02:55 UTC 2015


On Sun, Apr 5, 2015 at 5:41 PM, Boris Pavlovic <boris at pavlovic.me> wrote:

> Brant,
>
> I run profimp with and without patch
> https://review.openstack.org/#/c/164066/:
> And it really works well:
>
> before 170ms:
> http://boris-42.github.io/keystone/before.html
>
> after 76ms:
> http://boris-42.github.io/keystone/after.html
>
>
>
Looks like now the issue is that keystoneclient imports pbr.version so that
it can get pbr to generate the __version__ value. Maybe pbr could be more
efficient about the work it does on import, or we could figure out a
different / lazy way to generate the version string.
http://git.openstack.org/cgit/openstack/python-keystoneclient/tree/keystoneclient/__init__.py#n35

How far do we need to go with this?

- Brant



> Best regards,
> Boris Pavlovic
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150406/b482683e/attachment.html>


More information about the OpenStack-dev mailing list