Skip to content

[Feature]: Lock-free Metrics Counting API #1386

@shaun-cox

Description

@shaun-cox

Related Problems?

The general problem is one of minimizing the performance overheads of instrumentation and delivering on the mission.

#1374

Describe the solution you'd like:

If the API could take advantage of Rust type-system features to distinguish when in a "thread-local" context where things are !Send, then modifying metrics could be even more performant than they are today. i.e. not baking in the assumptions of Arc<Mutex<State>> when Rc<RefCell<State>> would do.

Considered Alternatives

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-metricsArea: issues related to metricsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions