Skip to content

Commit

Permalink
perf: Speed up compiling arg! macro
Browse files Browse the repository at this point in the history
To "append" calls, we were passing in a more and more complex expression
on each recursive invocation.  We now pass in a fixed amount of data on
each iteration, reducing how much the macro machinery needs to parse,
speeding up builds.

Fresh builds went from 39s to 32s on my machine.

Inspired by clap-rs#4670
  • Loading branch information
epage committed Jan 24, 2023
1 parent 10a87c6 commit bbe5eaa
Showing 1 changed file with 173 additions and 188 deletions.

0 comments on commit bbe5eaa

Please sign in to comment.