Skip to content

Optimize btreemap::range(...).count() #189

@peterpeterparker

Description

@peterpeterparker

Features

It would be nice to expose a more performant way to get to know the number of entries in the stable structure btreemap where keys belong to the specified range than my_btree_map.range().count().

Context

In Juno, while I still need to perform quite some work to improve my code's usage of stable structures, I have exposed a few "count documents and assets" functions. These functions inform the developer about the number of elements in a collection. Therefore, it would be handy for my use case if such information could be found in a performant way.

Notes

  • Follow-up of forum thread.

  • This suggestion is not a blocker on my side.

Metadata

Metadata

Assignees

No one assigned

    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