Skip to content

Optimize statistics timestamps to reuse relevent message timestamps when possible #2433

Description

@mattrpav

Currently, every metric increment (or decrement) makes a system call to get a timestamp.

Many times, the statistic could re-use an existing timestamp (brokerInTime, brokerOutTime, etc). Updating the statistics to take in a timestamp as an argument would eliminate a significant number of system calls.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions