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:
Some tuples within
com.riiablo.logger
could be pooled to reduce allocation. Easy ones could beMessage
andLogEvent
, 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 toLogger
. Tons of boilerplate code, since this is project-specific, I'd say 8 parameters max, but maybe less. For example: