XStream
  1. XStream
  2. XSTR-724

Cache class name lookup failure

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.4
    • Fix Version/s: 1.4.5
    • Component/s: Core
    • Labels:
      None

      Description

      This patch improves the performance of CachingMapper by having it remember failed class lookup.

      Imagine we are loading a large number of XML files via XStream that refers to one class that doesn't exist any more. My converter gracefully recovers from it by ignoring just the portion that uses the non-existent class, but in the current XStream code, this greatly suffers performance-wise by repeatedly trying to load a non-existent class (which results in a lookup across classloader hierarchy.)

      1. XSTR-724.diff
        2 kB
        Kohsuke Kawaguchi

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Kohsuke Kawaguchi
        • Votes:
          0 Vote for this issue
          Watchers:
          2 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: