-
Notifications
You must be signed in to change notification settings - Fork 95
Conversation
state/history.go
Outdated
files *btree.BTreeG[*filesItem] | ||
compressVals bool | ||
files *btree.BTreeG[*filesItem] | ||
valueMergeFn func(prev, last []byte) ([]byte, error) |
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.
Perhaps this valueMergeFn should belong to Domain
instead? I did not see how it is used in History
recsplit/eliasfano32/elias_fano.go
Outdated
p := (*[maxDataSize / 8]uint64)(unsafe.Pointer(&r[16])) | ||
ef.data = p[:] | ||
|
||
ef.data = make([]uint64, len(r[16:])/8) |
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.
This needs to be undone, because the idea is to use memory-mapped files and not allocate it on the heap
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.
we discussed that already, using unsafe pointer p
leads to use-after-close in indexes
f37962f
to
916bf60
Compare
Fuzz test requires to be revisited, working on it, everything else looks working. |
ba8d85c
to
6a9314f
Compare
21aea80
to
61d7e77
Compare
No description provided.