You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains 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
Expand the ChunkStore interface to let the nodeStore access recently accessed chunks. Avoid adding a child ref to the pendingRef list when already present in nbs.hasCache. For TPC-C this appears to reduce the pending ref count by another ~80%.
The reason will be displayed to describe this comment to others. Learn more.
I know this was just testing perf impact...but for iterating towards landing it, I definitely don't think landing this with a new interface on the ChunkStore is the right direction.
Instead, I would think something like getAddrsCb becomes something like func(chunk []byte, func(h hash.Hash)) and then NomsBlockStore implementation uses that to actually build the hashset that it wants, and in the process filters by the concrete hasCache that was passed into tableSet.append or whatever.
If perf impact of the interface change is bad, even getAddrsCb as func(chunk []byte, insertIntoThis hash.HashSet, filterByThis Haser)type Haser interface { Has(hash.Hash) bool } or func(chunk []byte, insertIntoThis hash.HashSet, filterByThis lru...) or something could be preferable...
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.
Expand the
ChunkStore
interface to let thenodeStore
access recently accessed chunks. Avoid adding a child ref to thependingRef
list when already present innbs.hasCache
. For TPC-C this appears to reduce the pending ref count by another ~80%.