https://bz.apache.org/bugzilla/show_bug.cgi?id=61722
--- Comment #4 from Greg Woolsey <[email protected]> --- My previous tests were with Java 6. With Java 8 (starting with 7, actually) things are a bit different, and I've found even better performance by increasing the size of the Integer cache, either via system property -Djava.lang.Integer.IntegerCache.high=<size> or JVM setting: -XX:AutoBoxCacheMax=<size> this makes Integer.valueOf(int) the fastest option. I use a value greater than my expected maximum row count, typically 50000 to 100000, although I've not noticed any negative impacts of using 1000000 other than the expected time to load and memory to cache those simple objects. I think rather than introduce a new dependency we stick with Integer.valueOf(int) now that we've moved to Java 8. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
