Slowdown in SVG Parser following dashed-line handling


#1

Hi Guys,

 

There has been some major slowndown introduced in SVG parser recently.

It looks to be the new handling of dashed-line but which do not handle the "null" value for stroke-dasharray

which seems to be always set by some SVG authoring tool.

 

Just need to replace line 612 of juce_SVGParser.cpp by


 if (strokeDashArray.isNotEmpty() && !strokeDashArray.equalsIgnoreCase("null"))
            parseDashArray (strokeDashArray.getCharPointer(), *dp);

Thanks !


#2

OK, thanks, will add that!