Use git-like hashed directories

Bug #769757 reported by François Marier on 2011-04-24
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libravatar
Low
Unassigned

Bug Description

To avoid having too many files in the same directory, we should do what git does with its "objects" and pull the first two characters of the hash into a directory.

A file like this:

   /avatar/abcd1234

would therefore be stored as:

  /avatar/ab/cd1234

Andrew Ruthven (andrew-etc) wrote :

You could also use:

  /avatar/ab/abcd1234

Which might make things a little bit easier, especially if you need to insert another level of hashing later.

Changed in libravatar:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers