I bisected it to this commit:

commit 847bdfcb2c836d0e8853a9b985ef2bf88a925dd4
Author: Stefan Krastanov <[email protected]>
Date:   Tue Nov 15 19:54:25 2011 +0100

    Adding plot function (not implemented)

    The docstring for the plot function is ready. The function itself is not
    ready. It just calls Plot with the same arguments.

    Also now the default between a contour plot and a 3d plot is the 3d plot.

    Also fixed some comments.

which is the first commit where the new plotting module is imported
with "import sympy".  So I think the issue is that it imports numpy
and matplotlib.  We should restructure the module to only import those
modules if the plotting module is used.  Otherwise, we are making
importing sympy too slow for the majority of users (who also have
numpy and matplotlib installed).

Aaron Meurer

On Sat, Sep 22, 2012 at 7:41 PM, Aaron Meurer <[email protected]> wrote:
> I was going through https://github.com/sympy/sympy/wiki/new-release in
> preparation to cut the release candidate, when I get to the "speed of
> import" section.  I compared the test_import tool against SymPy 0.7.1
> and the 0.7.2 branch, and there appears to be a significant slow-down
> (by almost 4x).
>
> Can other people reproduce this?  If so, we need to figure out if it
> is possible to bring this back down again.
>
> sympy(sympy-0.7.1)$%$./bin/test_import
> Note: the first run (warm up) was not included in the average + std dev
> All runs (including warm up):
> [0.632580041885, 0.142980098724, 0.144616127014, 0.18177986145,
> 0.153340816498, 0.146248817444, 0.152235031128, 0.147120952606,
> 0.149618864059, 0.147889852524, 0.146507978439, 0.146991014481,
> 0.148049116135, 0.149016857147, 0.146153926849, 0.149012088776,
> 0.146345853806, 0.145620822906, 0.156076908112, 0.146780014038,
> 0.148214817047, 0.146635055542, 0.148654937744, 0.14654302597,
> 0.146838188171, 0.14808511734, 0.147293806076, 0.148097991943,
> 0.149609804153, 0.148839950562, 0.147723913193, 0.146723985672,
> 0.151859045029, 0.147171974182, 0.148344039917, 0.14845085144,
> 0.147562980652, 0.151570081711, 0.200988054276, 0.150926113129,
> 0.152683973312, 0.149338960648, 0.148150920868, 0.149286031723,
> 0.146691083908, 0.147687911987, 0.145917892456, 0.14581489563,
> 0.150799036026, 0.147582054138, 0.145636796951]
> Number of tests: 50
> The speed of "import sympy" is: 0.149922 +- 0.008985
> sympy(sympy-0.7.1)$%$git co 0.7.2
> Previous HEAD position was 556fe55... SymPy 0.7.1 release
> Switched to branch '0.7.2'
> sympy0.7.2$%=$./bin/test_import
> Note: the first run (warm up) was not included in the average + std dev
> All runs (including warm up):
> [1.01710915565, 0.398802042007, 0.396264076233, 0.397413015366,
> 0.391931056976, 0.403698921204, 0.3991959095, 0.393259048462,
> 0.411875009537, 0.397119045258, 0.414400100708, 0.465793132782,
> 0.43417596817, 0.443454027176, 0.417393922806, 0.453384876251,
> 0.400901079178, 0.393971920013, 0.39364695549, 0.393153905869,
> 0.39675116539, 0.395659923553, 0.400503873825, 0.399799823761,
> 0.406329870224, 0.393779039383, 0.400959968567, 0.392513036728,
> 0.396237850189, 0.392780065536, 0.396032810211, 0.391910076141,
> 0.396354913712, 0.393106937408, 0.514472961426, 0.428894042969,
> 0.418586015701, 0.423231840134, 0.418197154999, 0.420174837112,
> 0.414786100388, 0.420045852661, 0.438434839249, 0.424329996109,
> 0.426602125168, 0.424081087112, 0.420931816101, 0.427915096283,
> 0.418045043945, 0.421542882919, 0.424115896225]
> Number of tests: 50
> The speed of "import sympy" is: 0.412739 +- 0.022607
>
> Aaron Meurer

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to