On Thu, Mar 26, 2009 at 3:45 AM, Edward K. Ream <[email protected]> wrote:
>> Hashing to rescue! For file foo.py ver 3, we have a private version >> 2368237aaee.txt.py. The name is the hash digest of contents of foo.py. Grab a chair. *this is the speedup cache I've been talking about* It will not contain @thin like nodes. It will contain the whole data structure in a pickle [(gnx1, h1, b1, (gnx1.1, h1.1, b1.1)), (gnx2...)] This will allow us to avoid the slow sentinel scanning. So, besides providing a structure for @auto nodes, it can be used to speed up @thin nodes. Also, if we have that file available, no @auto scanning need to be done either - just grab the structure from quickly read pickle. So basically, this is a rehashed version of the hash speedup scheme, with this twist: - "cache" files actually contain valuable data, i.e. it's not just a function of file contents. - cache files are published. There *are* a few holes in the scheme (garbage collection needs to be thought of, @shadow preserves structure on external file change etc.) . Just wanted to throw this out quickly. -- 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 -~----------~----~----~----~------~----~------~--~---
