Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1764

Use MethodHandle in ContextDataFactory cached constructor

    Details

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

      Description

      The cached constructor for a custom StringMap in ContextDataFactory currently uses the core reflection API. As this constructor is called a lot if it doesn't use the default value, migration to the Java 7 MethodHandle API should improve performance on custom constructors.

        Attachments

          Activity

            People

            • Assignee:
              jvz Matt Sicker
              Reporter:
              jvz Matt Sicker
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: