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
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.