[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [RFC] Changing the default cache size.
From: |
Bakken, Luke |
Subject: |
RE: [RFC] Changing the default cache size. |
Date: |
Wed, 14 Sep 2005 10:15:40 -0400 |
Shigio YAMAGUCHI wrote:
> Hello all,
> Currently, the default cache size of tag file is 500000 bytes.
> To decide the value, I was assuming the machine equipped with 32-64MB
> memory. However, in a recent machine, even small one has 256-512MB
> memory. (Actually, even my machine has 128MB memory.)
>
> default max
> --------------------------------------
> Mac mini 512MB 1GB
> ThinkPad X40 256/512MB 1.2GB
>
> I think that now is the time to increase the default cache size.
> How about increasing the size to 5,000,000 (=5M) bytes?
>
> The code is like follows.
>
> [libutil/dbop.c]
>
> -- Current --
> if (getenv("GTAGSCACHE") != NULL)
> info.cachesize = atoi(getenv("GTAGSCACHE"));
> if (info.cachesize < 500000)
> info.cachesize = 500000;
> |
> v
> -- New --
> info.cachesize = 5000000; /* [ADD] Default
> cache size */ if (getenv("GTAGSCACHE") != NULL)
> info.cachesize = atoi(getenv("GTAGSCACHE"));
> if (info.cachesize < 500000)
> info.cachesize = 500000;
>
> The 500000 bytes is leaved as the minimum value.
>
> What do you think?
Sounds like a good idea to me.
By the way, I'm really looking forward to 4.8.7 and all of the speed
improvements!!!
Luke