individual: avoid updating in get
authorPatrick Ohly <patrick.ohly@intel.com>
Fri, 23 Nov 2012 14:06:58 +0000 (15:06 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sat, 24 Nov 2012 14:32:09 +0000 (14:32 +0000)
commit90b514025017db3465bdce60ca80f56927743aa1
tree6ddecb927dd2239ad6b16b5d145b2d671b8ad0b2
parent7fd2ec2764d342ede63c78e3fb4f0281dfb2676f
individual: avoid updating in get

Properties with delayed loading always went through an update check
each time the property was read. This slowed down reading
unnecessarily, because constructing the value is costly and necessary
updates are already dealt with via notifications.

Fixed by introducing a new parameter "force_update" which is true
by default (= same behavior as before) and false when used inside
get().

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=688834
NEWS
folks/individual.vala