Buckets:

download
raw
458 Bytes
import gc
import logging
import platform
logger = logging.getLogger(__name__)
def gc_set_threshold():
"""
Reduce number of GC runs to improve performance (explanation video)
https://www.youtube.com/watch?v=p4Sn6UcFTOU
"""
if platform.python_implementation() == "CPython":
# allocs, g1, g2 = gc.get_threshold()
gc.set_threshold(50_000, 500, 1000)
logger.debug("Adjusting python allocations to reduce GC runs")

Xet Storage Details

Size:
458 Bytes
·
Xet hash:
ef957650167104a1e54e053e187532d7af7ae59240f031bc59b7e5d256a60946

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.