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

Confirm optimisation of general case Dn #8

Open
3 tasks
alexmadeathing opened this issue Feb 22, 2022 · 0 comments
Open
3 tasks

Confirm optimisation of general case Dn #8

alexmadeathing opened this issue Feb 22, 2022 · 0 comments
Labels
Investigation This needs some thought

Comments

@alexmadeathing
Copy link
Owner

alexmadeathing commented Feb 22, 2022

A general method exists for dilating and undilating any type and any value of D. The general method uses the constant functions defined in const_generation.rs, so it should - in theory - be optimised as much as the hand written methods. However, this needs to be confirmed.

This should be a useful reference:
https://medium.com/journey-to-rust/viewing-assembly-for-rust-function-d4870baad941

  • Emit optimised assembly for the general case methods
  • Determine whether const functions are indeed optimised out
  • If they are not optimised out, then try implementing the constants in a lookup table instead
@alexmadeathing alexmadeathing added feature New feature or request Infrastructure Something to do with CI, deployment, or architectural Investigation This needs some thought and removed feature New feature or request Infrastructure Something to do with CI, deployment, or architectural labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigation This needs some thought
Projects
None yet
Development

No branches or pull requests

1 participant