qtumproject / cpp-eth-qtum

GNU General Public License v3.0
9 stars 48 forks source link

Change std::vector to std::set for deleteAddresses #11

Closed Earlz closed 7 years ago

Earlz commented 7 years ago

This results in a slight performance decrease for EVM execution(slower insert), but in Qtum's AAL code, it results in a significant performance increase. Overall, this is much safer and less prone to transaction flooding attacks

CreateNewBalances() before: 0.509s CreateNewBalances() after: 0.026s

Total EVM execution before: 0.171s Total EVM execution after: 0.189s