Re: [gnome-db] gda_holder_set_value_static_str
- From: Massimo Cora' <maxcvs email it>
- To: Vivien Malerba <vmalerba gmail com>
- Cc: gnome-db list <gnome-db-list gnome org>
- Subject: Re: [gnome-db] gda_holder_set_value_static_str
- Date: Tue, 26 Aug 2008 19:22:52 +0200
Vivien Malerba wrote:
> 2008/8/25 Massimo Cora' <maxcvs email it>:
>> Hi Vivien,
>>
>>
>> while trying to optimize the speed of some queries I came on
>> g_value_set_static_string (), which is good and faster than its brother
>> g_value_set_str ().
>> I was wondering if it was possibile to add a
>> gda_holder_set_value_static_str ()?
>
> This can be done, even if it would be usefull only for GdaHolder with
> a G_TYPE_STRING value.
>
>> Another question, always in that fashion:
>> gda_holder_take_value () takes as input a *value that is freed when the
>> holder is re-set. That method returns TRUE if value has been set.
>> I was thinking about this speed improvement:
>> create a gda_holder_take_value_do_not_free () [well, the name is
>> unlucky...] that when is re-set will return the stored value instead of
>> freeing it. In this manner it's possible to reuse that GValue without a
>> g_free () and g_value_new_*().
>
> Could you provide a patch for this?
sure I'll try to come out with a patch ASAP.
regards,
Massimo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]