Port optimizing Krita from the community wiki.

Authored by woltherav on Apr 7 2019, 1:28 PM.