<br><br><div class="gmail_quote">On Sun, Feb 28, 2010 at 16:31, Greg Ewing <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Robert Collins wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the special<br>
case of probing for $name.$ext1, ...$ext2, ...$ext3, you generally hit<br>
the same pages and don't incur additional page in costs.<br>
</blockquote>
<br></div>
So then looking for a .pyc alongside a .py or vice versa<br>
should be almost free, and we shouldn't be worrying about<br>
it.<br></blockquote><div><br></div><div>But that is making the assumption that all filesystems operate this way (.e.g does NFS have the same performance characteristics?).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
hot cache:<br>
% time seconds usecs/call calls errors syscall<br>
------ ----------- ----------- --------- --------- ----------------<br>
45.10 0.000368 92 4 getdents<br></div><div class="im">
0.00 0.000000 0 734 625 stat<br>
</div></blockquote>
<br>
Further supporting the idea that stat calls are negligible<br>
once the cache is warmed up.</blockquote><div><br></div><div>But that's the point: once it's warmed up. This is not the case when executing a script once every once in a while compared to something bzr where you are most likely going to execute the command multiple times within a small timeframe.</div>
<div><br></div><div>-Brett</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
<br>
-- <br>
Greg<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/brett%40python.org" target="_blank">http://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</div></div></blockquote></div><br>