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

nostrdb-net: algo for unifying similar subscriptions #31

Open
jb55 opened this issue Dec 18, 2024 · 1 comment
Open

nostrdb-net: algo for unifying similar subscriptions #31

jb55 opened this issue Dec 18, 2024 · 1 comment

Comments

@jb55
Copy link
Contributor

jb55 commented Dec 18, 2024

This will be useful for our subscription manager

Example:

subA: {"authors": ["a"], "since": 100}
subB: {"authors": ["b"], "since": 200}

Should optimize to:

subAB: {"authors": ["a", "b"], "since": 100}

@v0l
Copy link

v0l commented Jan 22, 2025

I have something like this in @snort/system-wasm but its not very well written: https://github.com/v0l/snort/blob/main/packages/system-wasm/src/merge.rs

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

2 participants