bec_lib.serialization.pause_gc#
- pause_gc()[source]#
Pause the garbage collector while doing a lot of allocations, to prevent intempestive collect in case of big messages or if a lot of strings allocated; this follows the advice here: msgpack/msgpack-python
Maybe should be limited to big messages? Didn’t evaluated the cost of pausing/re-enabling the GC