Re: Use of Memory Slices in N-ary Trees



Hi.

> Ah perfect! So you mean that when I create a new node using GNode it will
> automatically use g_slice_alloc behind the covers?

Yes, nodes are allocated using g_slice_new0(GNode) (unless you have
G_SLICE env variable set to "always-malloc").

Tadej

-- 
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com


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