Slowdown in SVG Parser following dashed-line handling

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 !

OK, thanks, will add that!