logstash/log4j-jsonevent-layout — pull request #9 by looztra (2013-04-01 16:58:02+00:00)
Title: Optimize : request hostname to system only once and use ThreadLocal for SimpleDateFormat

+ request hostname only once, when the JSONEventLayout class is initialized
+ use a *ThreadLocal* instead of creating a new *SimpleDateFormat* for each call to the *format* static method
+ bonus: organized imports (intellij idea style) + format code

I saw a performance increase of 30% on the *measureJSONEventLayoutLocationInfoPerformance* test method on my system.