multicall.py
multicall.py copied to clipboard
Consider switching to ThreadPoolExecutor

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