-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New caching #1454
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
Merged
Merged
New caching #1454
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
5df1842
lol this worked first try wtf
vmg 6b90e24
Per-object filtering
vmg c4e91d4
Random eviction
vmg 8842c75
What has science done.
vmg cf7850a
Duplicated type object
vmg 064236c
Per-object max size
vmg d9d423e
Some stats
vmg e16e268
No longer needed
vmg e183e37
Clear the cache when there are too many items to expire
vmg ee12272
Global option setters
vmg badd85a
Use git_odb_object_data/_size whereever possible
arrbee b12b72e
Add range checking around cache opts
arrbee 24c7080
Add mutex around mapping and unmapping pack files
arrbee 917f60c
Add tests for oidmap and new cache with threading
arrbee 7860626
Add callback to git_objects_table
arrbee 3f27127
Simplify object table parse functions
arrbee 116bbdf
clean up tree pointer casting
arrbee 5360786
Further threading fixes
arrbee e976b56
Add git__compare_and_swap and use it
arrbee c628918
Fixes for Windows cas/threading stuff
arrbee 38eef61
Make indexer use shared packfile open code
arrbee 5d2d21e
Consolidate packfile allocation further
arrbee 865e2dd
tests: Cleanup commit parse testing code
vmg cf9709b
tests: Do not warn for unused variable
vmg d877159
cache: Max cache size, and evict when the cache fills up
vmg 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
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
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
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we try to evict as many as we can (say,
evict_count = kh_size(cache->map)
) instead of just ignoring it?