Use git-like hashed directories
Bug #769757 reported by
François Marier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Libravatar (obsolete) |
Confirmed
|
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
Changed in libravatar: | |
importance: | Medium → Low |
To post a comment you must log in.
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.