Rob Browning
unread,Jul 14, 2012, 4:38:48 PM7/14/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Gabriel Filion, Gabriele Santilli, Oei, YC, bup-list
Gabriel Filion <
lel...@gmail.com> writes:
> right, I'd want that. but for now the .bupm files don't have an index,
> so we need to iterate over it to find metadata for one particular file,
> don't we?
Right.
> we'd need to either make the code cache metadata entries, or add an
> index to the .bupm file.
Right -- the former was what I was initially talking about. I think I
can add that easily (and probably fairly immediately), but I wasn't sure
if it was reasonable.
> the former sounds like it can suffer on performance and memory footprint
> in cases where directories contain a lot of files.
Exactly.
Though now that I think about it -- I wonder if we could just implement
the dumb caching approach for now, and add indexing (or something else
smarter) when we get a chance.
For example, if the fs_item.metadata() API seems reasonable, then for
the moment, I could just implement it via (potentially expensive)
on-demand caching, and later, we could be smarter.
Come to think of it, if we do end up with indexes, I suppose as a first
pass, they could also be generated on-demand, the first time we retrieve
an object from that .bupm.
Thoughts?