Gentoo Archives: gentoo-dev

From: Gordon Pettey <petteyg359@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure
Date: Sun, 28 Jan 2018 22:14:03
Message-Id: CAHY5MedZJ1mcENS5tE=+29NvE504Z4fZ4tC7TAEEFzcFXgFqjQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] [pre-GLEP] Split distfile mirror directory structure by Andrew Barchuk
1 On Sun, Jan 28, 2018 at 4:00 PM, Andrew Barchuk <andrew@×××××××.io> wrote:
2 > I don't see a reason to organize distfiles in a
3 > multi-level hierarchy: e.g. if the goal is to keep no more than 1000
4 > files in a folder than the limit of single level hierarchy is a million
5 > which is more than enough for foreseeable future. The list of 500
6 > directories takes 15kB when using full file names and will be couple of
7 > times smaller when using only unique prefixes.
8
9 Then don't. Using one level of first-4-characters-of-filename-hash is
10 still more efficient.