Implement a caching mechanism
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pytagsfs |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
With larger number of media files it takes long time to create the virtual filesystem. I believe this could be improved with some sort of caching mechanism because in most cases, real media files does not change very often.
The idea is that pytagsfs would store the data necesary for recreating virtual filesystem in the cache file(s). Structure of the cache file would be optimized for fast read access. Data in the cache file could consist of the whole tree of the real files with timestamps, tags that were read from files previously and list of virtual files that were created for particular real file (something like: Real_File_
When recreating the virtual filesystem, directories and files timestamps would be compared with cached ones. If timestamps not differ, virtual files would be created according List_Of_
Not the first time I've seen this request, although this is the first time we've had a ticket for it. This is the kind of work that I'd like to see go into the next major release, though.
I've been short on time lately, so I haven't been able to spend much of it on pytagsfs. I'd love to see some other folks get involved with pytagsfs development. If this is something that interests you, please join the mailing list. Patches can be submitted there for review, or you're also welcome to post a bzr branch implementing your changes. Otherwise, I do hope to get to this someday, but it may not be soon.
Thanks,
Forest