quantlab.factor.chunking.memory_budget#

quantlab.factor.chunking.memory_budget()[source]#

Return the bytes a chunk may take: MEMORY_FRACTION of the memory available.

Examples

>>> memory_budget() <= psutil.virtual_memory().available
True