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

Bloom something #147

Open
staltz opened this issue Jan 27, 2021 · 6 comments
Open

Bloom something #147

staltz opened this issue Jan 27, 2021 · 6 comments
Labels
enhancement 🌱 New feature or request

Comments

@staltz
Copy link
Member

staltz commented Jan 27, 2021

Not sure if we can/should use bloom filters, but this library looks good and supports export/import to JSON string. https://callidon.github.io/bloom-filters/

@staltz
Copy link
Member Author

staltz commented Jan 27, 2021

Like, prefix indexes are basically similar to bloom filters, because they behave the same regarding false positives. But maybe we could have a bloom filter for "I follow X" foreach X and another for "I block X" foreach X. Maaaybe. But there are also other data structures there.

@arj03
Copy link
Member

arj03 commented Jan 27, 2021

Yes that library is very interesting. Will have a look when I get better time :)

@arj03
Copy link
Member

arj03 commented Jan 27, 2021

I was reading up on the idea of learned index (wierd name for what it is), there is an implementation of it here. Basically another index form that could be useful in some specific cases. From this HN discussion.

@staltz
Copy link
Member Author

staltz commented Jan 27, 2021

I was reading up on the idea of learned index (wierd name for what it is), there is an implementation of it here. Basically another index form that could be useful in some specific cases. From this HN discussion.

So cool.

@staltz staltz added the enhancement 🌱 New feature or request label Feb 16, 2021
@arj03
Copy link
Member

arj03 commented Feb 24, 2021

I was reading up on set replication and was reading Kleppmann's algorithm for this. It has this interesting graph:

image

That said, it seems the graph is based on 10bit truncation.

@arj03
Copy link
Member

arj03 commented Feb 24, 2021

Hah, I'm trying to run his python script on 32 bits and I think there is a hidden crypto miner in there, or it's just very inefficient. There is a very big difference between 32 and 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌱 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants