XStream
  1. XStream
  2. XSTR-517

Misc performance improvements (for detected HotSpots via profiler)

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3.1
    • Component/s: None
    • Labels:
      None

      Description

      Based on trying to resolve performance problems (for my use case, XStream badly lags JAXB 2.0), I found and resolved 3 hot spots that were easy enough to fix. One was for an existing issues (XSTR-506), but I didn't see entries for other 2.

      Anyway, please see attached files for patched versions – I verified that they each resolved a hot spot (i.e. didn't show prominently in profiler output after change), and improved read (deserialize) performance significantly.

      1. FieldAliasingMapper.java
        4 kB
        Tatu Saloranta
      2. SerializationMethodInvoker.java
        6 kB
        Tatu Saloranta
      3. XmlFriendlyReplacer.java
        4 kB
        Tatu Saloranta

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Tatu Saloranta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: