Skip to content

Feature request: update element key #181

Open
@kaber2

Description

@kaber2

For SortedKeyList, it would be nice to have a more optimized way of updating an item's key than doing remove + add.

A few things that come to mind would be:

  • determining whether there is no position change and in that case do nothing
  • searching only maxes before/after the changed element for the new insertion point
  • avoiding list shrinking and enlargement if the element will end up in the same sublist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions