feat: add daemon mode, ETS sharding, and fast search paths (#1)#1
Closed
karthik-bharadwaj-h wants to merge 5 commits into
Closed
feat: add daemon mode, ETS sharding, and fast search paths (#1)#1karthik-bharadwaj-h wants to merge 5 commits into
karthik-bharadwaj-h wants to merge 5 commits into
Conversation
* feat: add daemon mode, ETS sharding, and fast search paths
- Shard ETS trigram index across 16 tables, eliminating lock contention (6× faster builds)
- Store per-shard compressed index files with parallel load/save (5× faster cold load)
- Add Unix socket daemon with in-memory content cache for zero cold-start searches
- Add Python thin client `ig` to bypass BEAM VM startup overhead (~3s saved per query)
- Fix bloom-filter false negatives caused by using first_byte instead of last_byte in next_mask
* feat: add daemon mode, ETS sharding, and fast search paths
- Shard ETS trigram index across 16 tables, eliminating lock contention (6× faster builds)
- Store per-shard compressed index files with parallel load/save (5× faster cold load)
- Add Unix socket daemon with in-memory content cache for zero cold-start searches
- Add Python thin client `ig` to bypass BEAM VM startup overhead (~3s saved per query)
- Fix bloom-filter false negatives caused by using first_byte instead of last_byte in next_mask
….update/1 for efficient reindexing
GrowlyX
requested changes
Mar 25, 2026
| SOCK_NAME = "daemon.sock" | ||
|
|
||
|
|
||
| def socket_path(base_dir: str) -> str: |
Owner
There was a problem hiding this comment.
We shouldn't assume that people have python installed, is there a better way to do this?
Contributor
Author
There was a problem hiding this comment.
I added PCRE2-JIT NIF for fast content scanning to replace Erlang's :re.run as native C implementation.
In the same folder I have placed ig_client code in source too as C implementation which does same as this ig.py python script
Is this better alternative?
Owner
There was a problem hiding this comment.
I ended up building a daemon system and a shell script to call the daemon. I'll merge your other updates systematically! thx for the contribution!
GrowlyX
added a commit
that referenced
this pull request
Mar 26, 2026
ETS sharding, bloom-filter mask pre-filtering, PCRE2-JIT NIF, integer trigram keys, parallel scanner, incremental index updates, thin C/Python clients, index format v5. Preserves existing daemon architecture. Co-authored-by: karthik-bharadwaj-h <20438441+karthik-bharadwaj-h@users.noreply.github.com>
GrowlyX
added a commit
that referenced
this pull request
Mar 26, 2026
ETS sharding, bloom-filter mask pre-filtering, PCRE2-JIT NIF, integer trigram keys, parallel scanner, incremental index updates, thin C/Python clients, index format v5. Preserves existing daemon architecture. Co-authored-by: karthik-bharadwaj-h <20438441+karthik-bharadwaj-h@users.noreply.github.com>
Owner
|
hey! i co-authored a commit to add everything you added here to main! thanks again! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: add daemon mode, ETS sharding, and fast search paths
igto bypass BEAM VM startup overhead (~3s saved per query)