[squeak-dev] FileDoesNotExistException on existing changes file during trunk update

Bert Freudenberg bert at freudenbergs.de
Mon Sep 1 14:13:25 UTC 2014


On 01.09.2014, at 15:56, Eliot Miranda <eliot.miranda at gmail.com> wrote:

>> Another thought is that given the abundance of memory these days, we might cache both sources and changes in main memory (which would also speed up full-text searches).
> 
> Pharo is planning to eliminate them altogether which is more coherent than caching them.

That's another discussion, but it might be a step towards that.

>  But IMO the solution is easy, maintain a *single* read-only copy of the sources and changes files in SourceFilesArray (or whatever the class is called; I'm on my phone) and read source through them instead of reopen ing the damn things all the time.  

Except that Squeak files do not maintain an independent file position pointer, so reading from different positions in the same file is not thread-safe. That's why the file is opened again.

> Then the file's own buffers will provide done caching.  Annoying that I write this code in 2008 for newspeak but we still rely on the mad "run the GC to finalize files when open fails" approach.

Well, you writing this for newspeak does not immediately benefit Squeak. But if you point us to the code maybe someone can port it to Squeak?

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4142 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140901/19065597/smime.bin


More information about the Squeak-dev mailing list