google / flogger

A Fluent Logging API for Java
Apache License 2.0
1.45k stars 123 forks source link

Split up rate limiter classes to simplify LogContext code and reduce the size of memory allocations needed in the common case (almost no log statements use both types of rate limiting). #334

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Split up rate limiter classes to simplify LogContext code and reduce the size of memory allocations needed in the common case (almost no log statements use both types of rate limiting).

This change should have no impact other than reducing memory footprint.

RELNOTES=Refactored rate limiter classes.