spencerkimball/cockroach — pull request #4 by spencerkimball (2014-02-15 17:34:36+00:00)
Title: Added diff of an InfoStore with a supplied Filter. This determines the

approximate difference in number of keys known by the builder of the
Filter but unknown to the InfoStore. It's an heuristic for how good of
a gossip peer the builder of the Filter would be. A greater diff is
better.

Introduced a visitor pattern "visitInfos" for InfoStore to remove
boilerplate iteration code that had cropped up in 4 or 5 places.

Added unittests for diffing.