<div dir="ltr">I recently ran into some major slowdowns in going from yt version 3.1 to 3.2 on certain machines, although it wasn't related to my calling the annotate_contour callback.  When I tracked it down with pdb, the slowdown was in indexing certain arrays, so maybe there is a similar issue you're encountering.  I'm going to track down the changeset that this is tied to this week, and I'll let you know what I find.<div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 3:15 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Bili,<div><br></div><div>Just a shot in the dark, but do you have different matplotlib versions installed on your machine and server at UCSD? The contour callback is using some internal machinery in matplotlib that changed relatively recently.</div><div><br></div><div>It might also be worthwhile to run your script under cProfile so we get an idea of which function exactly is taking so long. Even better if you can run *that* function under the line_profiler.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 10, 2015 at 5:10 PM, Bili Dong <span dir="ltr"><<a href="mailto:qobilidop@gmail.com" target="_blank">qobilidop@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word">Hi yt-users,<div><br></div><div>I’m using yt-3.2 (Changeset = 329b5039b031 stable).</div><div><br></div><div>The problem is that the same script that could finish in seconds on my local machine will take much  (order of magnitude) longer time to run on the server I’m using. In some cases, it get stuck for hours that I don’t know if it will ever finish. I’ve tracked down the bottleneck to be the `annotate_contour` method. The server should be faster than my local machine. (I’m not exactly sure about how to compare it. But the server is generally much faster in other situations.)</div><div><br></div><div>For example, for this script (<a href="http://paste.yt-project.org/show/5808/" target="_blank">http://paste.yt-project.org/show/5808/</a>), on my local machine the output shows:</div><div><br></div><div>```</div><div><div>yt : [INFO     ] 2015-08-10 <b>14:48:15</b>,401 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800</div><div>yt : [INFO     ] 2015-08-10 <b>14:48:15</b>,751 Saving plot snapshot_200_Projection_z_density.png</div><div>yt : [INFO     ] 2015-08-10 <b>14:48:16</b>,716 Saving plot snapshot_200_Projection_z_density.png</div></div><div>```</div><div><br></div><div>However, on the server the output shows:</div><div>```</div><div><div>yt : [INFO     ] 2015-08-10 <b>14:51:25</b>,551 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800</div><div>yt : [INFO     ] 2015-08-10 <b>14:51:25</b>,917 Saving plot snapshot_200_Projection_z_density.png</div><div>yt : [INFO     ] 2015-08-10 <b>14:56:21</b>,922 Saving plot snapshot_200_Projection_z_density.png</div></div><div>```</div><div><br></div><div>That’s <b>296</b> times slower!!!</div><div><br></div><div>This is likely to be a very specific problem with the server. But I’d like to know if anyone else has encountered similar problems before so I can learn from your experience. For now, I have no idea what could have gone wrong.</div><div><br></div><div>BTW, I’m using TSCC (<a href="http://idi.ucsd.edu/computing/" target="_blank">http://idi.ucsd.edu/computing/</a>) at UC San Diego, if you happen to know it.</div><div><br></div><div>Thanks,</div><div>Bili</div></div><br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Cameron Hummels<div><span style="font-size:12.8000001907349px">NSF Postdoctoral Fellow</span></div><div><span style="font-size:12.8000001907349px">Department of Astronomy</span></div><div><span style="font-size:12.8000001907349px">California Institute of Technology</span><br></div><div><a href="http://chummels.org" style="font-size:12.8000001907349px" target="_blank">http://chummels.org</a><br></div></div></div></div>
</div>