Optimize object put #58
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-api-go#58
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-api-go:feat/put_optimize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now it is possible to store marshal data for object. If marshaled data has been set, then marshaled data will be returned as
StableMarshal
result.I also disabled caching of test results.
e78ccc430d
tod0f4cb080a
d0f4cb080a
toc0d1d6893a
c0d1d6893a
to72ffd38ab1
@ -76,2 +76,4 @@
payload []byte
// marshalData holds marshaled data, must not be marshaled by StableMarshal
Thank you for this comment :) 👍
@ -336,6 +344,17 @@ func (o *Object) StableMarshal(buf []byte) []byte {
return buf
}
func (o *Object) SetMarshalData(data []byte) {
Do we have some contract with the caller here? Like calling other
Set
functions afterSetMarshalData
is unsafe?It is true, so yes, we have.
Added comment.
72ffd38ab1
to498877e378