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

Some internal refactoring for optimizing #278

Merged
merged 8 commits into from Jun 8, 2016

Conversation

@bvssvni
Copy link
Member

commented Jun 8, 2016

This PR uses Rust's stack memory whenever possible to avoid unneccessary pop and push.
Intrinsic functions now use a table.

Added a simple benchmark comparison with Rust and Python that the compiler can't optimize out.

On my laptop:

  • Optimized Rust - 28.1x faster
  • Debug Rust - 7.3x faster
  • Dyon is 1.4x faster than Python (2.7.10)

@bvssvni bvssvni merged commit e695290 into PistonDevelopers:master Jun 8, 2016

@bvssvni bvssvni deleted the bvssvni:opt_assign branch Jun 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.