-
Notifications
You must be signed in to change notification settings - Fork 275
perf(block): sync.Map -> atomic bitmap for cache dirty tracking #2235
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
Draft
levb
wants to merge
43
commits into
main
Choose a base branch
from
lev-block-cache-bitmap
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 3 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
ec523da
perf(block): replace sync.Map with atomic bitmap for block cache dirt…
levb b4b62cc
Review fixes: cap setIsCached to bitmap bounds, concurrent test, nits
levb 7238599
chore: auto-commit generated changes
github-actions[bot] 791950e
perf(block): precompute OTEL for chunker hot paths (#2236)
levb f8e5216
Merge branch 'main' of github.com:e2b-dev/infra into lev-block-cache-…
levb 6b71c54
Merge branch 'lev-block-cache-bitmap' of github.com:e2b-dev/infra int…
levb 7fc43fc
PR feedback: i->blockIdx, restore comments
levb be976c0
Merge branch 'main' of github.com:e2b-dev/infra into lev-block-cache-…
levb 779e033
refactor(block): extract atomic bitset to shared utility package
levb 19a857a
PR feedback: start/endBlock() helpers
levb 3f0daf4
feat(block): add flat/roaring/sharded bitset implementations behind FF
levb c65d2b2
Merge branch 'main' of github.com:e2b-dev/infra into lev-block-cache-…
levb 433c5d4
chore: auto-commit generated changes
github-actions[bot] cb37eb1
PR feedback: use header helpers, restore comments
levb 51ba221
PR feedback: start/endBlock() helpers
levb 86f31cb
fix(bitset): rename `make` param to avoid builtin shadowing
levb 43b647d
refactor(bitset): benchmark at realistic size (131K bits)
levb adf386d
test: switch default bitset to atomic for CI validation
levb 3d1e86c
refactor(block): move dirty bitmap locking to Cache, simplify Bitset …
levb 1c53aec
chore: auto-commit generated changes
github-actions[bot] 64b640a
test: disable race detector in CI, add bitset debug logging
levb 4f9b0cb
Merge branch 'main' of github.com:e2b-dev/infra into lev-block-cache-…
levb 3b4cd7d
fix: use Bitset.Iterator instead of sync.Map-style Range in cache export
levb 75b52cc
chore: auto-commit generated changes
github-actions[bot] e67b4ed
fix: acquire dirtyMu in ExportToDiff to prevent data race with concur…
levb b77211a
fix: default bitset to bits-and-blooms, add BitsAndBlooms impl
levb e08ddaa
chore: auto-commit generated changes
github-actions[bot] 6f0fe99
fix: lint issues in bitset_test.go
levb d4542cd
refactor: self-synchronizing bitset impls, remove dirtyMu from Cache
levb 60c54ff
Merge branch 'lev-block-cache-bitmap' of github.com:e1b-dev/infra int…
levb 0835f26
chore: auto-commit generated changes
github-actions[bot] 2840ad4
perf: Has fast path in isCached, updated benchmarks
levb 07387c8
Merge branch 'lev-block-cache-bitmap' of github.com:e1b-dev/infra int…
levb ae1ff1e
chore: auto-commit generated changes
github-actions[bot] a89f1ff
Change iteration
ValentaTomas 4cdb5f2
Merge branch 'main' into lev-block-cache-bitmap
ValentaTomas 59563a6
Test with sync map
ValentaTomas 7f3307f
Fix lint
ValentaTomas dd98117
Try bits and blooms bitset
ValentaTomas 098d060
Test roaring 64
ValentaTomas 3764ee2
Try rewriting used methods
ValentaTomas 3fdbd41
Change containsInt back
ValentaTomas dcfc4ea
Enable tests
ValentaTomas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.