I am trying to reduce the copying and allocations made in getStabilizedPaintInfo by reusing the result KisPaintInformation object in the mixing function.
Initial profiling shows stabilizerPollAndPaint taking 30% less time, but it's not very accurate.
The code looks a bit messy but it does what it does. Any suggestions on making it better or alternative approaches? (I dislike the implicit pass-by-reference parameter.)