Skip to content

[mypyc] Include more operations in the trace log #19647

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

Merged
merged 6 commits into from
Aug 13, 2025
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Aug 12, 2025

Add these operations to the trace log (note that trace logging is disabled by default):

  • Native attribute get/set
  • Boxing and unboxing
  • Casts
  • Incref/decref (including some implicit increfs)

All of these are common operations and can be performance bottlenecks. There are ways to avoid or speed up most of these (possibly through new mypyc features). For example, incref/decref can sometimes be avoided by using borrowing.

@JukkaL JukkaL merged commit b3d5021 into master Aug 13, 2025
13 checks passed
@JukkaL JukkaL deleted the log-trace-more branch August 13, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants