Skip to content

Commit

Permalink
document the logs-cache feature flag
Browse files Browse the repository at this point in the history
Co-Authored-By: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
  • Loading branch information
Keksoj and Wonshtrum committed Mar 11, 2024
1 parent 182b291 commit d44b227
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions command/src/logging/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
//! Sōzu logs, optimized for performance
//!
//! Instead of relying on well-known logging or tracing solutions,
//! Sōzu has its own logging stack that prioritizes CPU performance
//!
//! The `logs-cache` flag, on of that, saves lookup time by storing
//! the ENABLED status of each log call-site, in a `static mut`.
//! The gain in performance is measurable with a lot of log directives,
//! but mostly negligible, since CPUs are clever enough to recognize such patterns.
pub mod access_logs;
pub mod display;
#[macro_use]
Expand Down

0 comments on commit d44b227

Please sign in to comment.