subsocial-solochain icon indicating copy to clipboard operation
subsocial-solochain copied to clipboard

[not sure] Use .binary_search when inserting and removing to/from a vec storage item

Open subsocialdev opened this issue 4 years ago • 0 comments

This is a performance optimization task.

Examples:

  • Insert: https://github.com/paritytech/substrate/blob/master/frame/proxy/src/lib.rs#L197
  • Remove: https://github.com/paritytech/substrate/blob/master/frame/proxy/src/lib.rs#L233

subsocialdev avatar Jun 05 '20 14:06 subsocialdev