multicall.py icon indicating copy to clipboard operation
multicall.py copied to clipboard

Consider switching to ThreadPoolExecutor

Open stas opened this issue 3 years ago • 0 comments

Captura de ecrã de 2022-06-07 13 52 11

We're running multicall in a background worker and we could see an abnormal usage of the memory. After reviewing the implementation and switching to concurrent.futures.ThreadPoolExecutor, the processes stopped leaking memory.

Relevant line of code: https://github.com/banteg/multicall.py/blob/master/multicall/utils.py#L27

stas avatar Jun 07 '22 12:06 stas