crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
88ec14b1
ROOT
/
go
/
store
/
prolly
/
tree
/
node_cache.go
Search
History
184 lines
|
ISO-8859-1
|
3 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
numStripes
stripeMask
:
byte
b00011111
newChunkCache
(maxSize int)
:
(c nodeCache)
nodeCache
stripes
:
[numStripes]*stripe
get
(addr hash.Hash)
:
(Node, bool)
insert
(addr hash.Hash, node Node)
centry
a
:
hash.Hash
n
:
Node
i
:
int
prev
:
*centry
next
:
*centry
stripe
mu
:
*sync.Mutex
chunks
:
map[hash.Hash]*centry
head
:
*centry
sz
:
int
maxSz
:
int
rev
:
int
newStripe
(maxSize int)
:
*stripe
removeFromList
(e *centry)
*stripe
moveToFront
(e *centry)
get
(h hash.Hash)
:
(Node, bool)
insert
(addr hash.Hash, node Node)
shrinkToMaxSz
()
sanityCheck
()
All occurrences
Please wait...
Page is in error, reload to recover