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

Need fast lookup for block lists #13

Open
jmeaster30 opened this issue Aug 28, 2024 · 3 comments
Open

Need fast lookup for block lists #13

jmeaster30 opened this issue Aug 28, 2024 · 3 comments
Labels
New Thing New feature or request

Comments

@jmeaster30
Copy link
Owner

I want the ability to download a file of bad domain names and be able to block domains if they are in that file

This would require some sort of fast lookup data structure.

  • BloomFilter
    • Probabilistic (possibly in or definitely not)
    • Can't remove elements from set
    • Complicated
    • Space-Efficient
    • Sounds fun though
  • HashSet
    • O(1) assuming hashing is constant time
    • Binary search list of integers?
    • Don't care about the time for adding (as long as updating doesn't affect other threads reading from it) so we can still do lookups in other threads
@jmeaster30 jmeaster30 added the New Thing New feature or request label Aug 28, 2024
@jmeaster30
Copy link
Owner Author

We COULD make the database handle it

@jmeaster30
Copy link
Owner Author

Turns out the bloom filter is NOT complicated. I have an implementation but want to do more research into other options

@jmeaster30
Copy link
Owner Author

jmeaster30 commented Nov 27, 2024

I think its best to trust sqlite cause it is pretty fast already!

Just need a good index on the record table

@jmeaster30 jmeaster30 added Inky dinky make ya thinky Needs to have some questions resolved or thought through more and removed Inky dinky make ya thinky Needs to have some questions resolved or thought through more labels Nov 29, 2024
@jmeaster30 jmeaster30 added this to the Home Network Complete milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Thing New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant