Considering the garbage-free epic, this sounds like a good idea to bake in from the start.
On 15 February 2016 at 10:39, Gary Gregory <garydgreg...@gmail.com> wrote: > Hi All: > > My my custom flow logger, I avoid auto-boxing on traceExit() calls by > having primitive versions of the APIs. We could do the same and avoid > auto-boxing unless a logger's level is enabled. > > This generates a lot less garbage when, for example, we flow trace our > JDBC APIs and get 50m rows and 50 columns per row. > > Thoughts? > > Gary > > -- > E-Mail: garydgreg...@gmail.com | ggreg...@apache.org > Java Persistence with Hibernate, Second Edition > <http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory > -- Matt Sicker <boa...@gmail.com>