Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Reduce allocations for single point emission #60

Open
cypressious opened this issue May 8, 2018 · 0 comments
Open

Reduce allocations for single point emission #60

cypressious opened this issue May 8, 2018 · 0 comments

Comments

@cypressious
Copy link
Contributor

Most of the time, points are collected one by one by using one of the public methods of MetricsCollector. For every collected point however, an array has to be allocated because all the points go through the IPointEmitter.Emit(PointData[] points) method.

I propose to add a method virtual Emit(PointData point) to MetricsCollector that can be overriden by subclasses. The default implementation can simply delegate to the array accepting method.

cypressious added a commit to GreenParrotGmbH/influxdb-csharp that referenced this issue May 8, 2018
cypressious added a commit to GreenParrotGmbH/influxdb-csharp that referenced this issue May 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant