Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6746334
Votes 0
Synopsis SingleByteDecoder can be significantly faster
Category java:char_encodings
Reported Against
Release Fixed 6u12(b01)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 6763369
Submit Date 09-SEP-2008
Description
Attached test measures performance of BufferedReader.readline() and it seems that noticiable fraction of 
time is spent in sun.nio.cs.SingleByteDecoder.decodeLoop().

Performance seems to improve significantly if SingleByteDecoder is changed to use char array for 
byteToChar table instead of String. See suggested change in attachment.

In my experiments this change helps to improve performance of ReadlinePerf test by 35-40% - 
time drops from from ~1200ms to 740ms (tested on Windows Vista and XP). 

It also have noticeable impact on reading deployment cache. In my experiments performance 
savings are around 5-7% (reading manifests from index files by CacheEntry).
Posted Date : 2008-09-09 16:18:20.0
Work Around
N/A
Evaluation
Suggested fix is attached.
Posted Date : 2008-09-09 16:18:20.0
Comments
  
  Include a link with my name & email   

Submitted On 09-FEB-2009
UlfZibis
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6763369
is not visible.
Where can I get the source code of this enhancements ?



PLEASE NOTE: JDK6 is formerly known as Project Mustang