Re: [Vala] Vala should use g_slice for structures.

2013-04-26 Thread Jürg Billeter
Hi Tal, On Mon, 2013-04-15 at 23:34 +0300, Tal Hadad wrote: > I've seen in my generated code, that Vala use g_slice for alloc. classes. > But on structs, Vala use g_new0 and g_free. > > I think it should be also in structures "dup" and "free" funcs, for faster > performance, > even known struct

[Vala] Vala should use g_slice for structures.

2013-04-15 Thread Tal Hadad
Hello all I've seen in my generated code, that Vala use g_slice for alloc. classes. But on structs, Vala use g_new0 and g_free. I think it should be also in structures "dup" and "free" funcs, for faster performance, even known struct duplicating isn't used a lot. Hope to hear your opinion. Tal