You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Naumova Natalya (JIRA)" <ji...@apache.org> on 2007/08/28 13:21:30 UTC
[jira] Updated: (HARMONY-4685) [startup] FontManager implementation
without regex classes loading
[ https://issues.apache.org/jira/browse/HARMONY-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naumova Natalya updated HARMONY-4685:
--------------------------------------
Attachment: FontManager.without.regex.patch
Just re-writed
pathname = pathname.replaceAll("Language", language).replaceAll("Country", country).replaceAll("Encoding", fileEncoding).replaceAll("Version", version);
using String.indexOf and String.substring
> [startup] FontManager implementation without regex classes loading
> ------------------------------------------------------------------
>
> Key: HARMONY-4685
> URL: https://issues.apache.org/jira/browse/HARMONY-4685
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Naumova Natalya
> Attachments: FontManager.without.regex.patch
>
>
> org.apache.harmony.awt.gl.font.FontManager loads 67 classes from regex.jar.
> We can avoid this to re-write using of java.lang.String.replaceAll method in it, by using indexOf and substring instead of. Then no regex classes are loaded during the startup of the most of swing application . Speedup on SwingHelloWorld is ~1%.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.