Skip to content

Conversation

@natemueller
Copy link
Contributor

I want to be able to merge together estimators and stick the result in memcache. Needed the following methods to do that:

HyperEstimator#merge!
HyperEstimator#_dump
HyperEstimator.load

I also changed HyperEstimator.estimate to take an array of estimators as well as a list

Nate Mueller added 13 commits July 3, 2012 20:23
Previously, if you passed in n estimators it would merge n[0] with
itself n-1 times.
Tests still pass on 1.8
Conflicts:
	ext/hyperloglog.cpp
	spec/hyperloglog_spec.rb
Conflicts:
	spec/hyperloglog_spec.rb
You could do HyperEstimator.estimate(*estimators) but that will blow
the stack on long lists.
I want to pull a bunch of estimators out of the database,
merge them and cache the result
My primary use case is stuffing these into memcache

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

se variable isn't even used, is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that looks like a leftover

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants