Update get-size2 to 0.12.0 #41
<!-- __CODSPEED_PERFORMANCE_REPORT_COMMENT__ -->
Merging this PR will improve performance by 18.57%
<details>
<summary><b>2 warnings</b></summary>
:warning: 7 benchmarks with a significant change ran on different hardware
> Their base and head results were measured on machines with a different CPU, core count or memory, so the changes might not come from the code. Run base and head on the same runner type.
> Learn more about Macro Runners
> See affected benchmarks
:warning: 7 benchmarks with a significant change ran in a different software environment
> Their base and head results were measured with a different OS or toolchain, such as compiler, runtime or library versions, so the changes might come from this difference rather than from the code. Open an affected benchmark to see what changed.
> See affected benchmarks
</details>
⚡ 7 improved benchmarks ✅ 192 untouched benchmarks ⏩ 206 skipped benchmarks[^skipped]
Performance Changes
| | Benchmark | BASE | HEAD | Efficiency |
| --- | --------- | ------ | ------ | ---------- |
| ⚡ | [` char_string/shared[17] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aordering%3A%3Acomparison%2Fordering%3A%3Achar_string%2Fshared%255B17%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 156.1 ns | 126.9 ns | +22.98% |
| ⚡ | [ char_string/shared[4096] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aordering%3A%3Acomparison%2Fordering%3A%3Achar_string%2Fshared%255B4096%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 156.1 ns | 126.9 ns | +22.98% |
| ⚡ | [ char_string/shared[64] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aordering%3A%3Acomparison%2Fordering%3A%3Achar_string%2Fshared%255B64%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 156.1 ns | 126.9 ns | +22.98% |
| ⚡ | [ char_str/distinct_equal[8] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aequality%3A%3Acomparison%2Fequality%3A%3Achar_str%2Fdistinct_equal%255B8%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 336.7 ns | 278.3 ns | +20.96% |
| ⚡ | [ char_str/first_byte_mismatch[8] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aordering%3A%3Acomparison%2Fordering%3A%3Achar_str%2Ffirst_byte_mismatch%255B8%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 368.9 ns | 310.6 ns | +18.78% |
| ⚡ | [ char_str/distinct_equal[8] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aordering%3A%3Acomparison%2Fordering%3A%3Achar_str%2Fdistinct_equal%255B8%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 280 ns | 250.8 ns | +11.63% |
| ⚡ | [ char_string/distinct_equal[8] ](https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?uri=benches%2Fcomparison.rs%3A%3Abenches%3A%3Aequality%3A%3Acomparison%2Fequality%3A%3Achar_string%2Fdistinct_equal%255B8%255D&runnerMode=Simulation&utm_source=github&utm_medium=comment-v2&utm_content=benchmark) | 307.5 ns | 278.3 ns | +10.48% |
[!TIP]
Curious why performance improved? Comment @codspeedbot explain why performance improved` on this PR, or directly use the CodSpeed MCP with your agent.
---
<sub>Comparing <code>micha/update-get-size2-0-12</code> (c9b78ec) with <code>main</code> (4b401e9)</sub>
<a href="https://app.codspeed.io/astral-sh/char_str/branches/micha%2Fupdate-get-size2-0-12?utm_source=github&utm_medium=comment-v2&utm_content=button">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://codspeed.io/pr-report/open-in-codspeed-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="https://codspeed.io/pr-report/open-in-codspeed-light.svg">
<img alt="Open in CodSpeed" src="https://codspeed.io/pr-report/open-in-codspeed-light.svg" width="169" height="32">
</picture>
</a>
[^skipped]: 206 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.
Approved these changes.
charliermarsh
MichaReiser
Update the
get-sizefeature to implement theget-size20.12 trait so Ruff and ty can upgrade to the same version.The all-features test suite passes.
This will need a new release