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

Omit wrapper functions on Fp structs #599

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented Mar 22, 2022

These wrappers contributed thousands of lines of code but offered insignificant ergonomic benefit as the same functions are also wrapped at a higher level and, if necessary, wrapper functions can be called directly. This will also make the doc search much less confusing.

No obvious impact to compile time on my machine, but dropping several thousand lines of code can't hurt.

@MarijnS95
Copy link
Collaborator

I've been longing for this change for quite some time, glad to see it finally happen!

Disappointing it doesn't contribute anything meaningful to compile times, though :/

@MarijnS95
Copy link
Collaborator

Don't forget to add an entry to the changelog, then I think we have enough material (in terms of open PRs) for the next breaking ash release :)

@Ralith
Copy link
Collaborator Author

Ralith commented Mar 22, 2022

Changelog updated. We really do just need to work out how to profile the compiler rather than relying on guesswork.

Copy link
Collaborator

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't checked all of the ~7k line changes in detail, most of it looks good though.

These wrappers contributed thousands of lines of code but offered
insignificant ergonomic benefit as the same functions are also wrapped
at a higher level and, if necessary, wrapper functions can be called
directly.
@MarijnS95 MarijnS95 merged commit 84cddb7 into ash-rs:master Mar 22, 2022
@Ralith Ralith deleted the simplify branch March 22, 2022 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants