Re: [Nautilus-list] Rename Eel



On 19 Jul 2001 11:44:44 -0700, Ramiro Estrugo wrote:
> iain wrote:
> > 
> > BTW, do you know how slow eel_string_list is? My test[1] of adding N
> > items to the list and then counting them gives these results.
> >
> 
> Its not programmed to be fast, but to be convenient to use.
> 
> Also, the details of EelStringList are private so its trivial to change
> the implementation details to use a more efficient data structure if
> needed.
> 

Which is what I did. I'm just asking if the change is needed.
I don't think my method is less inconvienient, but iterating over a list
with nth is a nono.
I think my way of iterating turned from
for (i = 0; i < eel_string_list_length (stringlist); i++) {
	data = eel_string_list_nth (stringlist, i);
}

into

for (l = eel_string_list_peek (stringlist); l; l = l->next) {
	data = l->data;
}

I'm not intending this as a flame (which were the vibes I got from your
reply), I'm honestly asking is it worth changing, given that it's used
in so few places. 

iain





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