Patch: FYI: More efficient ResourceBundle calls
Bryce McKinlay
mckinlay@redhat.com
Sat May 29 00:26:00 GMT 2004
This patch changes various ResourceBundle.getBundle() calls to use the
3-argument form which includes a ClassLoader parameter. This call is
more efficient because it means getBundle() does not have to walk the
stack to find the calling classloader. This should speed up some
Date/Calendar operations which are currently quite slow due to repeated
calling classloader checks and that people have complained about in the
past.
We will of course in future improve the stack trace code so that the
calling-classloader check is more efficient, however it will always be
more efficient to pass the ClassLoader explicitly.
I'm checking this in.
Regards
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libjava-getbundle.patch
Type: text/x-patch
Size: 7198 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040529/31d3788c/attachment.bin>
More information about the Java-patches
mailing list