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

Use MethodHandle in ContextDataFactory cached constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • Core
    • 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

            mattsicker Matt Sicker
            mattsicker Matt Sicker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: