Skip to content

Conversation

@satur9nine
Copy link
Contributor

@satur9nine satur9nine commented Nov 27, 2025

Part 2 of 3

Optimize Offset/Pad/Prep: use cached head and slicing, reduced casting

This is a break-up of #8766

Improves performance of the PythonTest over part 1 by 34.6%

python-perf-startup.txt
python-perf-prep.txt

@satur9nine satur9nine changed the title Python perf prep [Python] Optimize Offset/Pad/Prep: use cached head and slicing Nov 27, 2025
@satur9nine satur9nine force-pushed the python-perf-prep branch 2 times, most recently from a3d18d0 to 8997df5 Compare November 28, 2025 18:46
@jtdavis777
Copy link
Collaborator

@fliiiix don't forget this one too :D appreciate your help

@fliiiix
Copy link
Contributor

fliiiix commented Dec 1, 2025

I have essential reviewed this in the other MR so no additional notes as far as i can tell this is correct, and who does not love more performance 🥳

Copy link
Collaborator

@jtdavis777 jtdavis777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than possible type conflicts on returns.

@jtdavis777 jtdavis777 merged commit 597e76a into google:master Dec 2, 2025
95 of 96 checks passed
@satur9nine satur9nine deleted the python-perf-prep branch December 2, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants