Conversation
- Add LayeredIndex[T] for combining multiple zip indexes with generic references - Implement file override semantics: newer layers override older ones - Add delete layers to remove files from previous layers - Automatic empty directory cleanup when files are deleted - Binary search optimization: files sorted by name on layer addition - Find operations use O(log n) binary search instead of O(n) linear search - Concurrent serialization/deserialization with user-provided RefSerializer[T] - Manual msgpack format: version + layers with ref data as binary arrays - Comprehensive test suite with 15+ test scenarios and benchmarks - Iterator support for Go 1.23 range syntax - Complete API: layer management, file access, conversion, serialization - Updated README with usage examples and API documentation
shtripat
approved these changes
Jan 6, 2026
ramondeklein
approved these changes
Jan 6, 2026
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.
This will allow to specify multiple indexes and have them searchable as a single entity.
Indexes are added in order and the layered index will represent the combined state.
That means that on a file with a given path the newest version will be returned.
A generic
comparabletype can be provided as the index reference type, so for any given file this can be seen in the results.An index can be added as a "delete" index. This means that any files in this will be removed from the underlying layers.