[Python-ideas] An alternate approach to async IO
Trent Nelson
trent at snakebite.org
Thu Nov 29 13:24:26 CET 2012
On Thu, Nov 29, 2012 at 01:16:54AM -0800, Antoine Pitrou wrote:
> Le Wed, 28 Nov 2012 15:18:19 -0500,
> Trent Nelson <trent at snakebite.org> a écrit :
> > >
> > > That api is fairly similar to what is in the proactor branch of
> > > tulip where you can write
> > >
> > > for event in proactor.poll(timeout):
> > > # process event
> > >
> > > But why use a use a thread pool just to take items from one thread
> > > safe (FIFO) queue and put them onto another thread safe (LIFO)
> > > queue?
> >
> > I'm not sure how "thread pool" got all the focus suddenly. That's
> > just an implementation detail. The key thing I'm proposing is
> > that we reduce the time involved in processing incoming IO requests.
>
> At this point, I propose you start writing some code and come back with
> benchmark numbers, before claiming that your proposal improves
> performance at all.
That's the plan. (Going to put aside a few hours each day to work
on it.) So, watch this space, I guess.
Trent.
More information about the Python-ideas
mailing list