GNOME Bugzilla – Bug 682803
Don’t notify on changes to hash/equal functions
Last modified: 2012-08-27 15:36:10 UTC
The hash/equal functions in various implementations of Set and Map have private setters, and are only set at construction time. Emitting GObject ‘notify’ signals for them is pointless and a waste of CPU time. (Rationale: libfolks is creating thousands of Sets/Maps, and the g_object_notify() calls from constructing them were appearing quite high up in callgrind traces.) Patch coming.
Created attachment 222553 [details] [review] Don’t notify on changes to hash/equal functions Patch to add “[CCode (notify = false)]” annotations to the various properties. This is based on the 0.6 branch (since that’s what folks is still running against), but I can rebase it on master if desired.
Fixed in master (the libgee 0.8 rc will be released today with this change). commit d8ab9380b6ecb1af215d250f2f38d9b1dff4c6ab Author: Philip Withnall <philip@tecnocode.co.uk> Date: Mon Aug 27 08:07:18 2012 -0700 Don’t notify on changes to hash/equal functions