BoostryJP / ibet-Prime

Advanced API Toolkit for Digital Securities Issuance and Management on the ibet Network 🚀
https://ibet.jp/ibet-for-fin
Apache License 2.0
11 stars 1 forks source link

[FEATURE] Utilize uvloop in batches to avoid using threads for domain name resolution #595

Closed purplesmoke05 closed 8 months ago

purplesmoke05 commented 8 months ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

purplesmoke05 commented 8 months ago

In order to make aiohttp Session cache thread-safe, web3 uses exclusion control on a single separate thread. This cannot be removed.

https://github.com/ethereum/web3.py/blob/v6/web3/_utils/request.py#L129-L141 https://github.com/ethereum/web3.py/blob/v6/web3/_utils/async_caching.py#L13