py-evm icon indicating copy to clipboard operation
py-evm copied to clipboard

optimize CodeStream.__iter__

Open charles-cooper opened this issue 3 years ago • 1 comments

a couple fixes:

  • CodeStream.program_counter was a hotspot but not in __slots__
  • avoid write-back for local pc variable

What was wrong?

How was it fixed?

Todo:

  • [ ] Clean up commit history

Cute Animal Picture

put a cute animal picture link inside the parentheses

charles-cooper avatar Jun 30 '22 00:06 charles-cooper

(a bit unclear to me that avoiding the pc writeback is better than having a local variable.)

charles-cooper avatar Jun 30 '22 01:06 charles-cooper