Re: Havoc's note about using GClosures
- From: Martin Baulig <martin home-of-linux org>
- To: ERDI Gergo <cactus cactus rulez org>
- Cc: gnome-components-list gnome org
- Subject: Re: Havoc's note about using GClosures
- Date: 05 Sep 2001 13:24:46 +0200
ERDI Gergo <cactus cactus rulez org> writes:
> I think Havoc had a good point when he mentioned that since the straight C
> callbacks are the more used code paths, and GClosures have a notable
> overhead over simple C callbacks, maybe the implementation of interfaces
> that support both C callbacks and closures should be changed to use the
> former for the actual callback.
> I.e. all the current implementations use GClosures internally, and the C
> version simply calls the _closure version with a CClosure created on the
> fly. A much better approach would be to have internal, auxillary C
> callbacks that call GClosures.
Hi,
after playing around with this, I realized that the overhead is not as big
as it looks like.
I'll post some profiling data soon.
--
Martin Baulig
martin gnome org (private)
baulig suse de (work)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]