Analysing the size of the code index

This page provides an analysis focusing on the size of the code index.

The total size of the index is 61.04 MiB.

The index has several parts. Each has a structure of nodes and prefixes. The size of the prefix strings is 2.22 MiB and the size of all structures is 58.82 MiB.

The size of each structure is:

Global Cache: 5.29 MiB

Selectors Cache: 44.21 MiB

Class Word Cache: 2.46 MiB

Selectors Word Cache: 6.86 MiB

The selectors cache is normally the largest part of the cache and it handles senders and implementors.

Number of nodes

Size Distributution

Number of nodes

Size Distributution

Each Lepiter database also has an index (LeDatabaseIndex GtIndex << #LeDatabaseIndex slots: { #database . #titleCache . #selectorCache . #classCache }; tag: 'Index'; package: 'Lepiter-Core' ) with prefix trees for page titles, and for the selectors and classes referenced in snippets.

The index of the GT Book, the only database saved in the image, is 0 B. The indexes of all databases of the default logical database, including the ones loaded at startup, use 0 B of the heap.