Re: _wstat on Windows (actually stat stuff in general)
- From: Jürg Billeter <j bitron ch>
- To: "Andrew W. Nosenko" <andrew w nosenko gmail com>
- Cc: Tor Lillqvist <tml iki fi>, gtk-devel-list gnome org
- Subject: Re: _wstat on Windows (actually stat stuff in general)
- Date: Thu, 29 Sep 2011 11:52:19 +0200
On Thu, 2011-09-29 at 12:44 +0300, Andrew W. Nosenko wrote:
> On Thu, Sep 29, 2011 at 12:05, Emmanuele Bassi <ebassi gmail com> wrote:
> > if GIO is measurably slower at doing I/O than a stat(), please: file
> > bugs along with profiling data.
>
> GIO as layer is so comparable to stat() as apples comparable to
> grapes, and we both know it :-)
>
> But, unfortunatelly, all GMainLoop based stuffs (including GIO) are
> indeed slow when we come to high workload if compared to kqueue based
> (and I think epoll-based also) main loop implementations.
>
> Therefore, either you use GIO, and limited to the current GMainLoop
> speeds, or use something kqueue-based and have no way to GIO.
The closest GIO function is g_file_query_info, and it doesn't use
GMainLoop at all, as far as I can tell. Async functions use GMainLoop,
but given that stat() is not async, there is no point in comparing the
performance of stat() to async GIO functions.
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]