Alberto Garcia <be...@igalia.com> writes: > On Wed 13 May 2015 05:18:31 PM CEST, Alexander Yarygin > <yary...@linux.vnet.ibm.com> wrote: > >> + if (!aio_ctxs || !g_list_find(aio_ctxs, aio_context)) { >> + busy |= aio_poll(aio_context, busy); >> + aio_ctxs = g_list_append(aio_ctxs, aio_context); >> + } > > g_list_append() walks the whole list in order to append an element, I > think you should use _prepend() instead. > > And since that's the only operation you're doing you can use a GSList > instead. > > Berto
This seems reasonable, thanks.