β Problem Statement
If any of the mini-projects involve downloading data from the internet or web scraping, they likely use synchronous requests. This makes them extremely slow, as the CPU sits idle while waiting for network responses.
π Proposed Enhancement
Refactor network-bound scripts to use asyncio and aiohttp. This will allow the scripts to fetch multiple URLs concurrently, drastically improving performance.
π οΈ Suggested Implementation
- Identify scripts making HTTP requests.
- Replace requests.get() with aiohttp.ClientSession().get().
- Use asyncio.gather() to execute requests concurrently.
Additional Notes
β Problem Statement
If any of the mini-projects involve downloading data from the internet or web scraping, they likely use synchronous requests. This makes them extremely slow, as the CPU sits idle while waiting for network responses.
π Proposed Enhancement
Refactor network-bound scripts to use asyncio and aiohttp. This will allow the scripts to fetch multiple URLs concurrently, drastically improving performance.
π οΈ Suggested Implementation
Additional Notes