Fix slow posterize
ClosedPublic

Authored by surt on Jun 1 2019, 10:55 PM.

Details

Summary

As discussed here: https://forum.kde.org/viewtopic.php?f=139&t=161010

Move the colour transformation creation out of the transform function into the constructor so posterize is back to interactive speed.

Diff Detail

Repository
R37 Krita
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
surt requested review of this revision.Jun 1 2019, 10:55 PM
surt created this revision.
rempt accepted this revision.Jun 3 2019, 8:27 AM
rempt added a subscriber: rempt.

Yes, this is definitely an improvement.

This revision is now accepted and ready to land.Jun 3 2019, 8:27 AM
This revision was automatically updated to reflect the committed changes.