Skip to content

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.

3 participants