Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal/ethapi: avoid recreating JavaScript tracer wrappers #15552

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

karalabe
Copy link
Member

During tracing, 26% of the time is currently spent in wrapping an opcode into a JavaScript object for otto. But there's no reason to wrap each opcode one by one, rather we can reuse the same JavaScript wrapper, just replace the opcode inside it.

The remainder of the PR is just removing some assignments to make the code a bit cleaner and more efficient, although I don't think there are to significant performance improvements there.

@karalabe karalabe added this to the 1.8.0 milestone Nov 24, 2017
@karalabe karalabe merged commit b0056f5 into ethereum:master Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants