Debian Codegraph @

whelp/AQL/MovieDB/wspec/cachesize.wrm

raw
1 // $Id: cachesize.wrm,v 1.1 1999/09/01 13:44:01 fw Exp $
2 // acedb auxiliary file : wspec/cachesize.wrm
3 //
4 // This file indicates the size of the 2 caches
5 //
6 // It is read once during initialisation of the program,
7 // If this file is absent or cannot be read, the values
8 // defaults as indicated in the source code blocksubs.c
9 // i.e. 1000 and 1000 as of release 1-8
10 //
11 // Cache1 is an image of the disk
12 // It contains exactly CACHE1 blocks of size BLOC_SIZE
13 // defined as 1024 (as of 1-8) in disk_.h
14 // Very big objects are spread on several blocs but must be read
15 // in a single call, therefore CACHE1 must be big enough to
16 // accomodate the largest object (most probably Voc[_VText])
17 //
18 // Cache2 contains the develloped image of the B objects.
19 // It is handled as a shared memory between the various pieces of
20 // the code accessing the objects and keeps a count of the handles.
21 // If the total size of the of objects exceeds CACHE2, it will destroy the
22 // unreferenced ones. Hence, if you loop on bsCreate() and never
23 // bsDestroy, cache2 extends until you run out of memory.
24 // Even if CACHE2 is very small, the code will allways run, just
25 // much slower, since you will more often have to access cache1
26 // and possibly the disk.
27
28
29 CACHE1 = 4000 // Size of first cache, as used in w5/blocksubs.c
30 CACHE2 = 4000 // Size of second cache, as used in w5/objcache.c
31 DISK = 4000 // Initial size of database on disk at creation
32
33 // end of the cachesize.wrm file
34
35