[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC] Changing the default cache size.
From: |
Shigio YAMAGUCHI |
Subject: |
[RFC] Changing the default cache size. |
Date: |
Wed, 14 Sep 2005 20:02:34 +0900 |
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
- [RFC] Changing the default cache size.,
Shigio YAMAGUCHI <=