Currently, when fetching a module from the registry, or searching the enabled list, we iterate in O(N) fashion.
For the registry all addresses are sorted, so we could use a binary search there.
For enabled precompiles, I'm unsure if a sorted list will always be passed.
Currently, when fetching a module from the registry, or searching the enabled list, we iterate in O(N) fashion.
For the registry all addresses are sorted, so we could use a binary search there.
For enabled precompiles, I'm unsure if a sorted list will always be passed.