Repository navigation
Release 2.6.0
·
302 commits
to main
since this release
[v2.6.0] - 2026-10-05
- C++ only fast mode: Added
BQ_LOG_FAST_VERBOSE…BQ_LOG_FAST_FATAL. They write the same entries aslog.infoand friends, but the work on the calling thread is inlined at the call site: a level check, the timestamp and the raw arguments. The same macros take a category too:BQ_LOG_FAST_INFO(log, log.cat.xxx, "...", ...); with or without a category is decided at compile time and costs the same. Trade-offs: slightly more memory, weaker IDE hints (macros), and a fixed log object and format string per call site. See API Reference — fast mode. - Performance — normal mode, logging thread:
log.infoand the other level functions run about 16% fewer instructions on the calling thread; a disabled level now costs a single memory load and bit test. - Performance — whole pipeline: Against 2.5.0 on the same benchmark (macOS, Apple M4 Pro), text output is 14–30% faster and compressed output up to about 40% faster; compressed output with 4 threads and 4 arguments is unchanged.
- Performance — clock: Timestamps come from the CPU hardware counter where it is reliable (with continuous checks against the system clock), falling back to the system clock automatically.
- New setting
log.worker_interval_ms: the longest the consumer thread sleeps when idle, in milliseconds (default66). Inasyncmode it applies to the shared worker of everyasynclog. See Configuration — log.worker_interval_ms.