banteg / multicall.py

aggregate results of multiple smart contract calls into one
MIT License
246 stars 106 forks source link

refactor(utils): don't use more cores than max -1 #43

Closed Barabazs closed 2 years ago

Barabazs commented 2 years ago

I would propose to limit the number of processes to max cores - 1. AFAIK setting the number of processes too high might lead to parallel slowdown.

BobTheBuidler commented 2 years ago

Good addition! I also added an env var for more granular control if users need it. Merged.