I've been playing around with the Search Stats code, and I've gotten
it partially working.

I only had a chance so far to put together a patch for the gtk2
version of search_stats.c, and haven't looked at the gtk1 version yet.

I found the problem with CPU utilization was due to re-sorting the
list after each item was added to the list, even though the user
didn't see a sorted list until it was finished anyways.  I also found
a minor problem with the matching as search terms were added to the
hash table.

I have found a way to turn off sorting while the list is built.
However, I couldn't find an automatic way to turn sorting back on, so
the user has to click on a column header to sort the list.

There's also still a remaining issue with starting the sorting.  I
found that sorting did not start simply by selecting one of the
searchs.  I had to select a search, reset the stats, and then change
my selection for search type to activate search stats.

I am attaching a patch for the src/ui/gtk/gtk2/search_stats.c file
with the changes that worked for me.

I hope you find this useful.  Let me know if you see any problems, or
need something additional.

Attachment: search_stats_patch
Description: Binary data

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to