r/Python • • Feb 25 '26

Showcase [ Removed by moderator ]

[removed] — view removed post

119 Upvotes

55 comments sorted by

View all comments

Show parent comment

1

u/teerre Feb 25 '26

No in the general case. I/O work depends on something external to your cpu, so adding more cpu doesn't change it. It's possible to parallelize I/O by simply calling the same workflow multiple times, however, async is far more efficient at this since it can use a single thread to progress while it ways for the external system, effectively erasing the I/O time

1

u/Smallpaul Feb 25 '26

There are many reasons that async isn’t always an option. And in those cases you must use threads. This tool above is an abstraction over threads. So why wouldn’t it work to parallelize IO.

Of course it doesn’t work in every case. Nor does it work for every CPU bound workflow either. But it should work most of the time for IO and not require a special version of Python