optimalBucketCount

fnsize_t optimalBucketCount(size_t size)

Helper function used to avoid too much allocations while lexing.

Parameters

sizeThe length in bytes of the source file.

Returns

The optimal initial bucket count a StringCache should have.