Comment 5 for bug 1431649

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/164066
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=c0145e5fe1a8abdcfe8f95bdb0f6cad647db0465
Submitter: Jenkins
Branch: master

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>