New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bezierFromSweep very slow? #227
Comments
In ghci: import Diagrams.Prelude
import Diagrams.TwoD.Offset
expandTrail' (with & expandCap .~ LineCapRound) 0.1 $ (origin ~~ mkP2 1 1.1) -- doesn't hang
expandTrail' (with & expandCap .~ LineCapRound) 0.1 $ (origin ~~ mkP2 1 3) -- hangs If I had to guess I'd say this is related to #221. Maybe @fryguybob can look into it? |
Strange. I'm not sure what the hang would be, but the example @cchalmers gave does not hang for me with the arcCCW branch. |
Yes, that does appear to fix it. thanks! |
Great. The branch should be merged soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A program of mine spends far too much time in bezierFromSweep, through expandTrail':
(I have no idea what it means for
renderPuzzle
to show up in that stack...)I haven't really managed to figure out what's happening, here. This showed up when porting https://github.com/robx/puzzle-draw to the current development version of diagrams; rendering a certain puzzle now gets "stuck" (keeps allocating and slows down to the point of apparently not making progress). I can't be entirely sure this change is due to the new diagrams version, or because of using diagrams-svg instead of diagrams-cairo for the backend. Or something else.
The relevant function in my code is
(p2i makes a point from a pair of Ints).
The input file has 18 such marked words, and is rendered fine with the non-updated version. If I replace
LineCapRound
byLineCapSquare
, it works fine.The text was updated successfully, but these errors were encountered: