Skip to content

Slower Imports? #3794

Closed
Closed
@chebee7i

Description

@chebee7i

Previously I was running 1.3.1 and this was a typical load time:

$ time python -c "import matplotlib;print matplotlib.__version__"
1.3.1

real    0m0.158s
user    0m0.089s
sys     0m0.061s

$ time python -c "import matplotlib;import matplotlib.pyplot as plt;print matplotlib.__version__"
1.3.1

real    0m0.271s
user    0m0.185s
sys     0m0.078s

After upgrading to 1.4.2, I'm now getting something like:

$ time python -c "import matplotlib;print matplotlib.__version__"
1.4.2

real    0m0.142s
user    0m0.085s
sys 0m0.058s

$ time python -c "import matplotlib;import matplotlib.pyplot as plt;print matplotlib.__version__"
1.4.2

real    0m3.051s
user    0m2.899s
sys 0m0.152s

$ time python -c "import matplotlib;import matplotlib.pyplot as plt;print matplotlib.__version__"
1.4.2

real    0m3.106s
user    0m2.905s
sys 0m0.198s

Any ideas on why it is so much slower?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions