GIOScheduler: Avoid constant iteration over pending job list
authorColin Walters <walters@verbum.org>
Thu, 21 Jun 2012 14:20:20 +0000 (10:20 -0400)
committerColin Walters <walters@verbum.org>
Fri, 22 Jun 2012 15:46:06 +0000 (11:46 -0400)
commit2839297686a9305b4fa909b93c337ef1d1a5e94b
tree217d8c1872d52a4c96fc7c5941735aae2641d1e5
parenta8ddd52a45ccf1e9a6aa6b5d873e12eda3a205df
GIOScheduler: Avoid constant iteration over pending job list

The iteration over the list (while holding a mutex) was a serious
performance hit for asynchronous I/O.  We can just use
g_cancellable_connect().

https://bugzilla.gnome.org/show_bug.cgi?id=678576
gio/gioscheduler.c