Add support for pooling in logger package
collinsmith opened this issue · 0 comments
collinsmith commented
Some tuples within com.riiablo.logger
could be pooled to reduce allocation. Easy ones could be Message
and LogEvent
, but there could be more.
As an aside, if Message
is pooled, it should also come with support for methods with fixed numbers of parameters to remove array allocations, including adding those to Logger
. Tons of boilerplate code, since this is project-specific, I'd say 8 parameters max, but maybe less. For example:
void errorf(String);
void errorf(String,Object);
void errorf(String,Object,Object);