| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good!
Sorry, something went wrong.
|
@markshannon gentle ping, please take a look at this if you have time, thanks! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Add an exact bytes fast path to BINARY_SLICE, following the list, tuple, and unicode fast paths added in gh-144590. This avoids creating a temporary slice object. Bytes subclasses continue to use the generic path.
Teach the Tier 2 optimizer that slicing an exact bytes object returns an exact bytes object.
Benchmark
Release builds on macOS arm64. Each result is the median of nine alternating runs after two warmups. Each sample ran in a fresh process.
There was no measurable change in peak RSS.
Tests
The full debug test suite passed with 50,671 tests using 14 workers.
Focused tests passed on debug, free-threaded, and JIT builds. test_bytes and test_slice also passed a -R 3:3 refleak run.