Do not use session iterators when unnecessary #902
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#902
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-node:morph-iter"
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?
Testing done:
frostfs-adm morph dump-hashes
on dev-enve9acc604b8
to2ed1f0afaf
2ed1f0afaf
toa0759bf1fd
@ -207,0 +210,4 @@
// defaultPrefetchBatchSize is the default number of items to prefetch.
// It is dependent on VM limits (2048 items on stack), the default works for simple items.
// For example, to iterate over 2 field structs, the limit should be divided by 3 = 1 (struct itself) + 2 (fields).
const defaultPrefetchBatchSize = vm.MaxStackSize - 16
-16
is for bookkeeping, should be more than enough for "default" cases@ -245,3 +277,3 @@
}
}
items, err = c.rpcActor.TraverseIterator(sid, &r, 0)
shouldStop = len(items) < batchSize
Do you need
shouldStop
flag at all??
Fixed
a0759bf1fd
tof43bfb01a8
Failing test is #896