XStream
  1. XStream
  2. XSTR-559

Cache field offset in Sun14ReflectionProvider

    Details

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

      Description

      After further profiling of xstream, another hotspot that has emerged is the writeField method of Sun14ReflectionProvider.java. Calling Unsafe.objectFieldOffset() seem to account for another ~20% of execution time. Therefore, a simple cache of this value should greatly improve performance.

        People

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

          Dates

          • Created:
            Updated:
            Resolved: