1 |
On Tue, 10 Jun 2008 19:40:22 +0530 |
2 |
"Arun Raghavan" <arunisgod@×××××.com> wrote: |
3 |
> On Tue, Jun 10, 2008 at 7:32 PM, Ciaran McCreesh |
4 |
> <ciaran.mccreesh@××××××××××.com> wrote: |
5 |
> [...] |
6 |
> >> I don't think that filename-vs-first-line is going to make a big |
7 |
> >> difference in practical performance. |
8 |
> > |
9 |
> > It's about a factor of five difference in cold-cache resolution |
10 |
> > performance for Paludis. |
11 |
> |
12 |
> Could you please share more details on the experiment that showed this |
13 |
> kind of performance degradation and the numbers, if possible? |
14 |
|
15 |
Shove an open and a getline in when doing what would otherwise be a |
16 |
successful cache read. It adds a couple of thousand new open()s on |
17 |
files that would otherwise be left alone, and changes the nice linear |
18 |
"slurp up things in this directory in order until we don't need |
19 |
anything else" pattern into "bounce backwards and forwards between lots |
20 |
of files in two different directories". |
21 |
|
22 |
On a cold cache, which is the most common use case, this is very very |
23 |
nasty. |
24 |
|
25 |
-- |
26 |
Ciaran McCreesh |