-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use json unquoted number/bool types, supported nested arrays and maps…
…, improving perf/benchmarks (#46) * wip improving perf/benchmarks * avoid go memory alloc optimization * optimize the simple json case (ts, no file, no args) * switch to not string quote numbers and bools * add a nan/inf test * array support * adding map support * opsa, need to be _test.go, not _tests * adding alias similar to slog for attributes * Update logger.go * sort the map keys so order is stable * use %s as we know we produce strings * clean up a bit the code using 2 functions instead of inline in the switch * update comment about caching, even string are cached as they need to be %q'uoted
- Loading branch information
Showing
6 changed files
with
308 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.