[ansel] Ansel::listGalleries()
Chuck Hagenbuch
chuck at horde.org
Tue May 11 10:35:07 PDT 2004
Quoting Ben Chavet <ben at chavet.net>:
> I started to mess with this & ran into a snag. Images are stored in
> the vfs in a directory structure that reflects the gallery tree. If
> we were to move a
> gallery, we'd have to move the images in the vfs, too.
>
> This, plus the idea of making an image "bucket" with pointers makes me
> think we should re-evaluate the vfs directory structure. I though of
> just having everything in the .horde/ansel directory, but that would
> be a lot of data in one directory. Another thought was to have
> .horde/ansel/full,
> .horde/ansel/thumb, and .horde/ansel/screen directories.
>
> Any other thoughts?
As Heath suggested, hashing is a good idea. I'd do it on the first
character of
the datatree_id that the image gets, which will be a hex value (a to f).
That's 16 buckets; if necessary we could then hash those buckets on the 2nd
character of the name, which would be 256, which is probably enough. :)
-chuck
--
"Regard my poor demoralized mule!" - Juan Valdez
More information about the ansel
mailing list