dapp-store-contracts
dapp-store-contracts copied to clipboard
EternalDB.delete_entry operates at O(n) complexity
Have you measured at which length an attribute array must be in order to exceed the pi-million gas limit?
An alternative to this would be to replace the element at the deleted index with the last element in the array and then shorten the array by 1. This would change this to be a constant time operation.