harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Naumova Natalya (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4685) [startup] FontManager implementation without regex classes loading
Date Tue, 28 Aug 2007 11:21:30 GMT

     [ 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.


Mime
View raw message