On 22/02/19 04:14, Peter Xu wrote: > And if this patchset can survive... how about running gcontext > directly in iothread_run()? I believe there could be a bit more > things to clean but I'll see.
Do you mean instead of aio_poll? The problem is that GMainContext is quite a bit slower than aio_poll. Frediano and I tried to bring some of the optimizations of aio_poll to GMainContext (https://github.com/GNOME/glib/commit/e91c11841808ccca408da96136f433a82b2e2145), but they broke webkit. :( Paolo