gtk_ctree_insert_node - why so slow?
- From: Olaf Frączyk <olaf cbk poznan pl>
- To: gtk-list gnome org
- Subject: gtk_ctree_insert_node - why so slow?
- Date: Wed, 14 Nov 2001 17:04:04 +0100
Hi,
As I found inserting 6000 nodes takes 4.5 second (+/- 100 msec) on Celeron
466 with no load.
I include a sample function below.
It's rather strange, because in 'balsa' (every one knows - mail client) it
takes about the same time for the same number of nodes.
But in 'pan' (newsreader) a ctree with 8000 nodes is populated in less
than 1 second.
I investigated 'pan' code, but didn't find any trick.
Any advice?
Regards,
Olaf
void ShowList(int num_of_rows)
{
int i;
gchar *User[3];
char test[255], test2[255];
gtk_clist_freeze(GTK_CLIST(UsersList));
for (i=0;i<num_of_rows;i++)
{
sprintf(test,"%i",i);
User[0]=test;
User[1]=test;
User[2]=NULL;
gtk_ctree_insert_node (GTK_CTREE(UsersList), NULL, NULL, (char
**)User, 2, NULL, NULL, NULL, NULL,FALSE, true);
}
gtk_clist_thaw(GTK_CLIST(UsersList));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]