Processing speed improvements:
- Introduce caching of trace event method annotations in the
Tracer.invoke()
function. - Skip creation of a
TraceEvent
object if there are no event consumers. This saves us from performing an expensive
LocalDateTime.now()
call. - Skip retrieval of trace event method annotations for simple log function invocations, if there are no event consumers.
- Remove string concatenations in
createLogMessage()
functions. Only useStringBuilder
functions. - Change
toStringRegistry
to useitem::javaClass.name
as key, and useitem::class.toString()
only as fallback. - Skip reading
item.javaClass.getMethod("toString").declaringClass
inconvertToStringUsingRegistry()
: the
item.toString()
function ofAny
will anyway print the name of the class. - Fix execution of unit tests requiring mockk-jvm (
extensions
andtraceevents
modules): no unit test for these
modules was being run anymore, after the 1.8.2 update. - Fix the
IfExtensionsTest
unit tests: these tests were broken by mockk 1.13.4 (due to
mockk/mockk#1033).