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

RuleBasedCollator should share internal data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.2.0
    • core-libs
    • beta
    • generic
    • generic



      Name: bb33257 Date: 07/16/98


      RuleBasedCollator has a set of complicated data structures that
      it uses to store collation rules. These include a MergeCollation
      object (and its subobjects), a CompactIntArray, and the contract
      and expand tables, which are vectors of arrays.

      Once a collator is built, all of this data is immutable. But
      currently, it's not shared. This means that cloning a Collator
      can take a long time. If we made the internal data shared, this
      would be much, much faster. Since Collator.getInstance always
      clones an object from its internal cache, this would have a big
      perceived performance impact from the user's point of view.
      ======================================================================

            rgillamsunw Richard Gillam (Inactive)
            bcbeck Brian Beck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: