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

Make centroidSet safe for concurrent access #1

Open
spenczar opened this issue Aug 25, 2015 · 0 comments
Open

Make centroidSet safe for concurrent access #1

spenczar opened this issue Aug 25, 2015 · 0 comments

Comments

@spenczar
Copy link
Owner

It's easy to imagine the use cases - you might have many goroutine workers processing data and want them to centralize their measurements.

One solution to this is to give each goroutine its own TDigest and add the ability to merge them. This has the advantage that it requires minimal locking.

A direct, blunt-force approach would be to lock access to the slice of centroids. This seems much less good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant