commit c0145e5fe1a8abdcfe8f95bdb0f6cad647db0465
Author: Joe Gordon <email address hidden>
Date: Thu Mar 12 20:43:36 2015 -0700
Make non-import packages lazy
6659902a731767b3405d68e515c8edcc3af81119 caused a lot of importing a
lot of things in __init__ which makes loading anything, say session,
really slow. The load time for keystoneclient is really critical since
every client uses it. And having a CLI take several seconds to do
nothing is really bad user experience.
This drops the hot cache import time of keystoneclient.session down to
160ms which is about 60ms faster (down from 220ms without this patch)
for me.
Change-Id: I917503ae54c9abcff417f0a0368abb765a847b6e
Partial-Bug: #1431649
Co-Authored-By: Robert Collins <email address hidden>
Reviewed: https:/ /review. openstack. org/164066 /git.openstack. org/cgit/ openstack/ python- keystoneclient/ commit/ ?id=c0145e5fe1a 8abdcfe8f95bdb0 f6cad647db0465
Committed: https:/
Submitter: Jenkins
Branch: master
commit c0145e5fe1a8abd cfe8f95bdb0f6ca d647db0465
Author: Joe Gordon <email address hidden>
Date: Thu Mar 12 20:43:36 2015 -0700
Make non-import packages lazy
6659902a731 767b3405d68e515 c8edcc3af81119 caused a lot of importing a
lot of things in __init__ which makes loading anything, say session,
really slow. The load time for keystoneclient is really critical since
every client uses it. And having a CLI take several seconds to do
nothing is really bad user experience.
This drops the hot cache import time of keystoneclient. session down to
160ms which is about 60ms faster (down from 220ms without this patch)
for me.
Change-Id: I917503ae54c9ab cff417f0a0368ab b765a847b6e
Partial-Bug: #1431649
Co-Authored-By: Robert Collins <email address hidden>