RFC: loops
- From: Daniel Marjamäki <daniel marjamaki comhem se>
- To: gtk-devel-list gnome org
- Subject: RFC: loops
- Date: Sun, 18 Dec 2005 08:26:26 +0100
Hello friends!
I'm still trying to find a simple task that I can help you with.
I could make a few loops faster by replacing code such as (gtkaccelgroup.c:305):
for (i = 0; i < accel_group->n_accels; i++)
if (find_func (&accel_group->priv_accels[i]->key,
accel_group->priv_accels[i]->closure,
data))
{
key = &accel_group->priv_accels[i]->key;
break;
}
Into...
GtkAccelGroupEntry *priv_accels = accel_group->priv_accels;
for (i = 0; i < accel_group->n_accels; i++)
{
if (find_func (&priv_accels->key,
priv_accels->closure,
data))
{
key = &priv_accels->key;
break;
}
priv_accels++;
}
Do you think this would be a worthwhile effort? Or are there better tasks that I can begin with?
Best Regards,
Daniel Marjamäki
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]