[patch] on the performance of KisCircleMaskGenerator::valueAt
Geoffry Song
goffrie at gmail.com
Fri Dec 31 16:42:42 CET 2010
On Thu, Dec 23, 2010 at 10:00 PM, Geoffry Song <goffrie at gmail.com> wrote:
> I noticed that KisCircleMaskGenerator::valueAt(), which can easily be
> called millions of times in a single stroke, has some rather
> inefficient code (in particular, an unnecessary sqrt()), so I took the
> liberty of optimizing the code a bit. This patch should somewhat
> improve the performance of large brushes, especially the sketch brush
> with a large diameter. No, it is not a large difference.
Here's a version that's less verbose: http://fpaste.org/8v0b/
(it removes the *Squared variables that were from an earlier version)
--
Segmentation fault
More information about the kimageshop
mailing list