This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Performance regression in ResourceBundle


I'm seeing a huge slowdown in my application from this patch:

http://gcc.gnu.org/ml/java-patches/2001-q3/msg00409.html

"This patch changes ResourceBundle.tryBundle() to only cache exact
matches.  This also has the advantage that you can add locale matching
resource bundles to long running programs by dropping the somewhere in
the classpath."

Searching the classpath is far too expensive for every time I call
tryBundle...  'truss' reveals thousands of unsuccessful open() calls.

Adding a gnu/java/locale/Calendar_en_US class to libgcj helps, though this
isn't a solution for any missing country locale.

I think somehow the failure to find an exact locale match must be cached
while preserving correctness.  At the moment I don't have time to look
closely at this, however.

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]