#batching

[ follow ]
fromStreamHacker
19 hours ago

Python Async Gather in Batches

Python's asyncio.gather function is great for I/O bound parallel processing. There's a simple utility function I like to use that I call gather_in_batches: async def gather_in_batches(tasks, batch_size=100, return_exceptions=False): for i in range(0, len(tasks), batch_size): batch = tasks[i:i+batch_size] for result in await asyncio.gather(*batch, return_exceptions=return_exceptions): yield result
Python
Productivity
fromFast Company
1 day ago

Email eats up 28% of your week. Here's how to get your time back

Close email and notifications, batch-check communications in focused sessions, and use simple organizational systems to protect deep work and reclaim time.
React
fromMedium
1 month ago

How React Batching and Scheduling Work Behind the Scenes

Understanding React's batching and scheduling is essential for building high-performance applications.
fromHackernoon
1 year ago

Optimizing RPC Performance with Batch Requests and Caching Layers | HackerNoon

Heavy-traffic decentralized applications (dApps) querying Ethereum's blockchain frequently face latency due to high node workload, leading to poor user experiences and elevated costs.
Node JS
[ Load more ]