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
Optimize TokenKind::clone.
#114119
Optimize TokenKind::clone.
#114119
Conversation
`TokenKind` would impl `Copy` if it weren't for `TokenKind::Interpolated`. This commit makes `clone` reflect that.
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…try> Optimize `TokenKind::clone`. `TokenKind` would impl `Copy` if it weren't for `TokenKind::Interpolated`. This commit makes `clone` reflect that. r? `@ghost`
|
|
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (2263ecc): comparison URL. Overall result:
|
| mean | range | count | |
|---|---|---|---|
| Regressions (primary) |
- | - | 0 |
| Regressions ❌ (secondary) |
- | - | 0 |
| Improvements (primary) |
-0.8% | [-1.5%, -0.2%] | 15 |
| Improvements ✅ (secondary) |
-0.8% | [-1.6%, -0.3%] | 14 |
| All |
-0.8% | [-1.5%, -0.2%] | 15 |
Max RSS (memory usage)
Results
This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
| mean | range | count | |
|---|---|---|---|
| Regressions (primary) |
- | - | 0 |
| Regressions (secondary) |
- | - | 0 |
| Improvements (primary) |
- | - | 0 |
| Improvements ✅ (secondary) |
-2.6% | [-2.6%, -2.6%] | 1 |
| All |
- | - | 0 |
Cycles
Results
This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
| mean | range | count | |
|---|---|---|---|
| Regressions (primary) |
- | - | 0 |
| Regressions (secondary) |
5.9% | [3.4%, 8.9%] | 10 |
| Improvements (primary) |
- | - | 0 |
| Improvements (secondary) |
- | - | 0 |
| All ❌✅ (primary) | - | - | 0 |
Binary size
This benchmark run did not return any relevant results for this metric.
Bootstrap: 653.837s -> 652.527s (-0.20%)
|
icounts look good. But cycles and walltime are up for @petrochenkov, what do you think? This is me trying to get part of the win we'd get if we could make |
Seems fine to me. |
|
|
|
Finished benchmarking commit (b95fd85): comparison URL. Overall result:
|
| mean | range | count | |
|---|---|---|---|
| Regressions (primary) |
- | - | 0 |
| Regressions ❌ (secondary) |
- | - | 0 |
| Improvements (primary) |
-1.0% | [-1.5%, -0.5%] | 10 |
| Improvements (secondary) |
-0.7% | [-1.0%, -0.3%] | 7 |
| All |
-1.0% | [-1.5%, -0.5%] | 10 |
Max RSS (memory usage)
Results
This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
| mean | range | count | |
|---|---|---|---|
| Regressions (primary) |
- | - | 0 |
| Regressions ❌ (secondary) |
2.2% | [0.9%, 3.1%] | 3 |
| Improvements (primary) |
- | - | 0 |
| Improvements (secondary) |
-2.2% | [-3.0%, -1.5%] | 5 |
| All |
- | - | 0 |
Cycles
Results
This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
| mean | range | count | |
|---|---|---|---|
| Regressions (primary) |
- | - | 0 |
| Regressions (secondary) |
5.8% | [3.1%, 8.9%] | 11 |
| Improvements (primary) |
-2.0% | [-2.1%, -2.0%] | 2 |
| Improvements (secondary) |
-3.1% | [-3.6%, -2.9%] | 5 |
| All ❌✅ (primary) | -2.0% | [-2.1%, -2.0%] | 2 |
Binary size
This benchmark run did not return any relevant results for this metric.
Bootstrap: 651.8s -> 650.875s (-0.14%)
TokenKindwould implCopyif it weren't forTokenKind::Interpolated. This commit makesclonereflect that.r? @ghost