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

Make extra::bigint sane #6822

Closed
wants to merge 1 commit into from
Closed

Conversation

Aatch
Copy link
Contributor

@Aatch Aatch commented May 30, 2013

This removes all the #[inline(always)] attributes from the bigint module, all 112 of them... This was responsible for increasing the code size of the module by almost 100x and accounts for roughly 95% of the previous build time of libextra.

@brson
Copy link
Contributor

brson commented May 30, 2013

Nice find! 🌸 I wonder how much more we could get from removing other inline attributes.

bors added a commit that referenced this pull request May 30, 2013
This removes all the `#[inline(always)]` attributes from the bigint module, all 112 of them... This was responsible for increasing the code size of the module by almost 100x and accounts for roughly 95% of the previous build time of libextra.
@bstrie
Copy link
Contributor

bstrie commented May 30, 2013

@Aatch I agree with this change, but this doesn't leave a single #[inline] anywhere at all in the module. Is that correct? Do we not expect users of this code to desire cross-crate inlining at all?

@Aatch
Copy link
Contributor Author

Aatch commented May 30, 2013

@bstrie there has been talk of removing the module altogether. The motivation being that this has very few, if any, users. There are some functions that should probably be marked with #[inline] but I don't think this is going to severely affect many (if any) people. @pcwalton mentioned that until it's performant with GMP, it's not going to be used.

@pcwalton pcwalton closed this May 30, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 11, 2021
Rustfmt version "Two"

changelog: none

This enables some ~bug fixes~ changes from rustfmt. This is more consistent with rustc's config, and should be more forward-compatible. Also, the changes look good IMO. 😃
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.

5 participants