← Back to Pull requests

Update get-size2 to 0.12.0 #41

Merged
MichaReiser merged 2 files (6 lines) on Nov 25, 2026 13:28 UTC
View on GitHub
MichaReiser MichaReiser commented on Nov 25, 2026 08:56 UTC
Author

Update the get-size feature to implement the get-size2 0.12 trait so Ruff and ty can upgrade to the same version.

The all-features test suite passes.

This will need a new release

Diff: 6 lines (+3 / -3) across 2 files Reviewer: charliermarsh Review duration: 271m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.16) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.16 · 6 lines diff across 2 files
0.16
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.54 · 1 substantive comment(s)
0.54
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.116
Real PR Conversation Timeline
3 items
codspeed[bot] codspeed[bot] commented on Nov 25, 2026 08:58 UTC
Bot

<!-- __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.

charliermarsh charliermarsh approved these changes on Nov 25, 2026 13:28 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
MichaReiser MichaReiser
Labels
risk: low confidence: 70.1% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 16.1% (LOW) · Higher = larger blast radius
16.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 70.1% · Lower = rushed or shallow review
70.1%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 4.8% · Safe to merge
4.8%