mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
9a9aabc178
This commit is a tiny win in compiled code size of a final binary including `clap` which shaves off 19k of compiled code locally. Previously tokens were checked if they were a number by using `.parse::<f64>().is_ok()`, but parsing floats is relatively heavyweight in terms of code size. This replaces the check with a more naive "does this string have lots of ascii digits" check where the compiled size of this check should be much smaller. |
||
---|---|---|
.. | ||
lexer.rs | ||
parsed.rs | ||
shorts.rs |