Class ThrottledGC
Wrap gc.collect to protect against excessively repeated calls.
Declaration
class ThrottledGC
source linkDocumentation
Allows to run throttled garbage collection in the workers as a
countermeasure to e.g.: https://github.com/dask/zict/issues/19
collect() does nothing when repeated calls are so costly and so frequent
that the thread would spend more than max_in_gc_frac doing GC.
warn_if_longer is a duration in seconds (10s by default) that can be used
to log a warning level message whenever an actual call to gc.collect()
lasts too long.
Methods
▷ def __init__(self, max_in_gc_frac=0.05, warn_if_longer=1, logger=None)
Reexports