Open utterances-bot opened 2 years ago
Looks to be pretty allocation heavy. Most modern loggers are pretty much zero allocation for common tasks, but your code will allocate a Log, an Event, a wrapper for the Instant, the Instant itself, wrappers for the value objects and so on just for one log call.
@HaasJona It is also "modern java" heavy and definitely has zero users for the foreseeable future - In the back of my head that meant hypothetically all of those objects could be made primitive classes.
Better Java logging, inspired by Clojure and Rust
https://mccue.dev/pages/9-25-22-better-java-logging