aleph-im / aleph-account

Aleph.im's Account management dApp
https://account.aleph.im/
2 stars 3 forks source link

(perf) Removes double lookup on array replacement #82

Closed BjrInt closed 1 year ago

BjrInt commented 1 year ago

Introducing a new helper to copy informations from an origin array to a destination array, when both array have a common key (ex: an item_hash). Greatly enhances performance of #81 (and possibly #72 ), by transforming a double array lookup into an hashmap lookup.

https://jsben.ch/N5BI6