Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PageSize int64 = 4096
Functions ¶
This section is empty.
Types ¶
type Iter ¶
type Iter struct {
// contains filtered or unexported fields
}
NOTE: There is quite some performance potential hidden here, if we manage to fit Iter in a single cache line:
Possible ideas to get down from 104 to 64:
- Use only one len field. -> -8
- Always pass Item out on Next() as out param. -> -32 -> Not possible, because the item might not be consumed directly as we might realize that another iter has more priority.
- Do not use exhausted, set len to 0. -> Does not work, as currLen is zero before last call to Next()
- continueOnErr can be part of Log. -8 (if exhausted goes away too)
- error could be returned on Next() directly.
func (*Iter) CurrentLocation ¶
CurrentLocation returns the location of the current entry. It is not valid before Next() has been called.
func (*Iter) FirstKey ¶
Key returns the key this iterator was created with This is not the current key of the item!
Click to show internal directories.
Click to hide internal directories.