Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4455476

(cs) character conversion performance problems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • core-libs
    • generic
    • generic

      Character conversion in String.getBytes and new String is has less overhead for some conversions, but the actual per-character conversion process is slower. In UTF-8 conversions of short strings are faster, but conversions of long strings are slower. For Cp1254 all conversions are equal or slower. The performance improvement in setting up the conversion is masking a performance regression in actual conversion.

      -----

      With a revised test, for all buffer sizes performance is worse in 1.4 than in 1.3. New figures appended to comments section, new test (ConverterPerfTest.java.Z) attached.
      doug.felt@eng 2001-05-30

            mr Mark Reinhold
            dougfelt Doug Felt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: