Skip to content

perf: reduce llvm-lines in runtime.rs#307

Merged
dtolnay merged 1 commit intodtolnay:masterfrom
dishmaker:dishmaker/perf_llvml_runtime
Nov 3, 2025
Merged

perf: reduce llvm-lines in runtime.rs#307
dtolnay merged 1 commit intodtolnay:masterfrom
dishmaker:dishmaker/perf_llvml_runtime

Conversation

@dishmaker
Copy link
Contributor

731 less llvm lines.

Before:

quote$ cargo llvm-lines --release | head -n 3
  Lines               Copies             Function name
  -----               ------             -------------
  8959                447                (TOTAL)

After:

quote$ cargo llvm-lines --release | head -n 3
  Lines               Copies             Function name
  -----               ------             -------------
  8228                403                (TOTAL)

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

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

Thanks!

@dtolnay dtolnay merged commit eac3231 into dtolnay:master Nov 3, 2025
11 checks passed
pub fn parse_spanned(tokens: &mut TokenStream, span: Span, s: &str) {
let s: TokenStream = s.parse().expect("invalid token stream");
tokens.extend(s.into_iter().map(|t| respan_token_tree(t, span)));
for token in s.into_iter() {
Copy link

Choose a reason for hiding this comment

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

The .into_iter() call is redundant, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in e868345

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.

3 participants