Skip to content

Request: "getAndAdd" method #2

Description

@salamanders

For iterating through huge lists with duplicates and using the bloom filter to make sure each use of an item from the list is only done once, it might speed things up to have a combined containsAndAdd method to avoid hanging to hash the same input twice.

if (myBloom.contains(itemFromList)) {
  return;
}
myBloom.add(itemFromList);
//... do things ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions