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 <[EMAIL PROTECTED]> - Tama Communications Corporation
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
--
Shigio YAMAGUCHI <[EMAIL PROTECTED]> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3


_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to