<br><br><div class="gmail_quote">On Thu, Sep 15, 2011 at 5:55 AM, 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">On 14/09/11 03:03, David Townshend wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
3.  Allow caching of file attribute data so that queries do not have to wait<br>
the disk or network to respond (although at the cost of accuracy).<br>
...<br></div><div class="im">
The third can be met be allowing all disk calls to be asynchonous:<br>
</div></blockquote>
<br>
You're mixing up two completely different concepts here. Cacheing has<br>
nothing to do with asynchronous calls; it's storing the result so that<br>
you don't have to wait the *next* time you want the information.<br>
<br></blockquote><div><br></div><div>I'm not sure if  I'm mixing up concepts or terminology. My meaning is, for example, if a method Path.files() is used to obtain a list of files in a directory, it would call os.listdir() in another thread and store the result to a cache. At the same time, the current contents of the cache are returned by Path.files(). Most of the time, the cache would be written to after its contents are returned by Path.files(), so the actual value returned would be inaccurate, but would be more accurate on the next call.  To me, this means caching the result of an asynchronous call to os.listdir().  I suspect, however, that I'm not using the term "asynchronous" as it normally refers to disk operations, so that's probably the confusion.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Both could be useful, but only for certain applications, and they<br>
should both be off by default in any general-purpose impelentation.<br><font color="#888888">
<br></font></blockquote><div>Agreed! </div><div><br></div></div>