Re: GList vs. GSList



Jeff Shipman <shippy nmt edu> writes:
> I'm currently using GList's in my program, but
> I don't really need the capability of a doubly-linked
> list and GSList provides everything I could need.
> However, I was wondering if there's a reason GList
> should be used over GSList? Or, does GList not use
> up a significant amount more of memory so I shouldn't
> bother fixing the code?
> 

Some people always use GList on the principle that you might need the
->prev pointer from time to time, others default to GSList on the
principle that it uses (very slightly) less memory.

It's not a big deal either way, I wouldn't spend time on it.

Havoc




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