Module cache

Module cache 

Source
Expand description

Array caching utilities for scalar values

Structsยง

ArrayCaches ๐Ÿ”’
Global cache for dictionary key arrays and null arrays
KeyArrayCache ๐Ÿ”’
Cache for dictionary key arrays to avoid repeated allocations when the same size is used frequently.
NullArrayCache ๐Ÿ”’
Cache for null arrays to avoid repeated allocations when the same size is used frequently.

Constantsยง

MAX_CACHE_SIZE ๐Ÿ”’
Maximum number of rows to cache to be conservative on memory usage

Staticsยง

ARRAY_CACHES ๐Ÿ”’

Functionsยง

get_array_caches ๐Ÿ”’
Get the global cache for arrays
get_or_create_cached_key_array ๐Ÿ”’
Get or create a cached key array for a specific key type
get_or_create_cached_null_array ๐Ÿ”’
Get or create a cached null array for the given number of rows