On Sun, Feb 7, 2010 at 4:27 PM, Edward K. Ream <[email protected]> wrote:

> My main idea is to associate cached items with both the files contents
> *and* the full path to the file.  When updating a cached item, we
> would delete any previous item at the same path.  This should be a
> simple, safe and effective optimization.

Yes, it should.

> My secondary idea is that there is actually very little involved in
> caching.  I'm not convinced that pickleshare.py (and path.py, called
> by pickleshare.py) are needed.  It may be simpler, safer and more
> flexible to create a leoCache module.

You can't get much simpler than pickleshare :-). Also remember that
it's being used for stuff apart from hashcache.

It should be quite easy to remove 'path' dependency from
pickleshare.py. 'path' is a rather simple module, and can be quite
easily replaced with os.path stuff. The key is to grep for "self.root"
in pickleshare.py, and make self.root work with plain path strings.

-- 
Ville M. Vainio
http://tinyurl.com/vainio

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" 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/leo-editor?hl=en.

Reply via email to