Commit 100e7bf2 authored by Philip Withnall's avatar Philip Withnall

gs-star-widget: Split out rating refresh from other refresh

It’s quite expensive to destroy and recreate all the child widgets of a
`GsStarRating` every time its rating is changed. In particular, doing so
means re-loading the `starred-symbolic` image a lot.

Avoid that by separating refreshing the `rating` property from
refreshing everything else.

This avoids around 115KB of object allocations through refreshes.
Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
parent e76567c3
Pipeline #184590 passed with stage
in 2 minutes and 54 seconds