[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Changing the default cache size.
From: |
Shigio Yamaguchi |
Subject: |
Re: [RFC] Changing the default cache size. |
Date: |
Thu, 22 Sep 2005 00:14:08 +0900 |
Commited.
> 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?
> --
> Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
--
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3