Ticket #17040: kitfox.patch

File kitfox.patch, 725 bytes (added by GerdP, 5 years ago)

Optimization: Reduce memory footprint and number of String instances für svg graphics

  • src/com/kitfox/svg/xml/XMLParseUtil.java

     
    319319                continue;
    320320            }
    321321
    322             String key = styles[i].substring(0, colon).trim();
    323             String value = quoteMatch.reset(styles[i].substring(colon + 1).trim()).replaceAll("");
     322            String key = styles[i].substring(0, colon).trim().intern();
     323            String value = quoteMatch.reset(styles[i].substring(colon + 1).trim()).replaceAll("").intern();
    324324
    325325            map.put(key, new StyleAttribute(key, value));
    326326        }