Re: Discouraging use of sync APIs
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: Philip Withnall <philip tecnocode co uk>, desktop-devel-list <desktop-devel-list gnome org>
- Subject: Re: Discouraging use of sync APIs
- Date: Tue, 10 Feb 2015 08:49:55 -0800
Right now the way g_file_read_async works is by scheduling a task on a worker thread, having the worker thread do the async read, and then returning a result.
As such, it's impossible to have two async reads done at the same time, which is really unfortunate from my understanding. If I'm reading a large file, and then a small file, the large file needs to fully complete before the small file is dispatched from the async queue.
Additionally, when profiling GNOME on ARM, I've been seeing a lot of cases of users using g_file_read_async() "just in case" for no particular reason, which causes several locks to be taken, severely slowing performance.
We need to seriously improve our async performance before asking people to use it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]