Skip to content

Conversation

svix-jplatte
Copy link
Contributor

@svix-jplatte svix-jplatte commented Mar 25, 2025

For our internal codebase, this significantly decreases the amount of LLVM IR generated for these (as measured by https://github.com/dtolnay/cargo-llvm-lines):

  • <F as axum::handler::Handler<(M,T1,T2,T3),S>>::call::{{closure}}
    from 29046 to 22078 lines across 52 instantiations
  • <F as axum::handler::Handler<(M,T1,T2,T3,T4),S>>::call::{{closure}}
    from 30383 to 23077 lines across 46 instantiations
  • <F as axum::handler::Handler<(M,T1,T2,T3,T4,T5),S>>::call::{{closure}}
    from 29754 to 22586 lines across 39 instantiations

Copy link
Collaborator

@yanns yanns left a comment

Choose a reason for hiding this comment

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

💯

@jplatte jplatte merged commit 2b6ae09 into tokio-rs:main Mar 25, 2025
18 checks passed
@svix-jplatte svix-jplatte deleted the impl-handler-opt branch March 25, 2025 12:15
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