sqrt optimization patch
Bug #1716286 reported by
Codain
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Codain |
Bug Description
Looking at the source code here is a patch which reduce the number of sqrt calls in some specific cases:
* Use of for/while loops with sqrt on constants data
* Use of the square root of a constant multiple times
+ some floating point divisions enhancements.
tags: | added: bug-migration |
To post a comment you must log in.
Hi,
can you make a MR on gitlab with your changes ?
Also, there are a few tabs to get rid of, and I'm not sure I see the advantage of the
- something = stuff * ((a+b)/2)
+ mean = (a+b)/2
+ something= stuff*mean
or of the added dots in 2 → 2.
Thanks