LAZY_THRESHOLD constant

int const LAZY_THRESHOLD

The length threshold above which substring tokens are computed lazily.

For string tokens that are substrings of the program source, the actual substring extraction is performed lazily. This is beneficial because not all scanned code are actually used. For unused parts, the substrings are never computed and allocated.

Implementation

static const int LAZY_THRESHOLD = 4;