In addition, using ResourceBundle in Harmony can make the message output be
easily localized into different languages. And it is very convenient to
support more locales in the future.

2008/11/20 Sean Qiu <[EMAIL PROTECTED]>

> We can benefit from it when exceptions are thrown many times.
> But we rarely encounter this situation in our application :)
> To save the memory, space outweigh time in this case.
>
> Correct me if I'm wrong.
>
> 2008/11/20 Kevin Zhou <[EMAIL PROTECTED]>
>
> > Hi,
> > I read some code in LUNI module of Harmony.
> > (org.apache.harmony.luni.util.Msg/MsgHelp and java.util.ResourceBundle)
> > I found that Harmony uses ResourceBundle to load messages from external
> > properties file.
> > e.g. Once it requires a message "K0046", it will always use
> > ResourceBundle to go through the
> > org.apache.harmony.luni.util.ExternalMessages.properties file to search
> it.
> > I think such redundant and repeated I/O operations may degrade our
> > performance.
> >
> > Why not use a hashtable to store all the external messages? It only
> > requires several I/O operations initially!
> >
> >
> >
>
>
> --
> Best Regards
> Sean, Xiao Xia Qiu
>
> China Software Development Lab, IBM
>



-- 
Best Regards,
Jim, Jun Jie Yu

China Software Development Lab, IBM

Reply via email to