Re: Havoc's note about using GClosures



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.

I'll have a look at it.

-- 
Martin Baulig
martin gnome org (private)
baulig suse de (work)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]