Skip to content

perf: consider Clone variant that accepts IterOptions #1712

@jbowens

Description

@jbowens

When CockroachDB clones an iterator, it unconditionally calls SetOptions to configure the iterator. If the options are changed, supplying the correct options to Clone would avoid reconstructing the iterator stack. If the options aren't changed, we would still benefit by omitting the various comparisons necessary to determine that the options are equivalent.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions