Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Bloom Filter Set/List Intersection #49

Open
biscuitWizard opened this issue Oct 3, 2021 · 4 comments
Open

[Feature Request] Bloom Filter Set/List Intersection #49

biscuitWizard opened this issue Oct 3, 2021 · 4 comments

Comments

@biscuitWizard
Copy link
Contributor

Intersecting two lists or sets would make an amazing built-in especially if it used a bloom filter algorithm, as it would be incredibly fast on what is sometimes a very close algorithm.

Unions, diffs, and intersections would all make great builtins, being common operations.

@ethindp
Copy link
Contributor

ethindp commented Nov 15, 2021

The STL contains algorithms for this (set_difference, set_intersection, set_symmetric_difference, and set_union). I don't know what algorithm implementations use, though.

@tvdijen
Copy link

tvdijen commented Nov 16, 2021

I have once created C built-in implementations of the LambdaMOO $set_utils that I can share if desirable.. Wouldn't know about the used algorithm though...

Update: I read about the bloom filter and that's definitely not what I used back in 2008.. They're still faster than MOO-verbs though.

@biscuitWizard
Copy link
Contributor Author

There's always the brute force approach! https://devblogs.microsoft.com/cppblog/using-c17-parallel-algorithms-for-better-performance/

Yeah, anything faster than moo-verbs would be fantastic.

@tvdijen
Copy link

tvdijen commented Nov 17, 2021

set_utils.cc.txt

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

No branches or pull requests

3 participants