Skip to content

Optimize new uops added for trace recording #144651

@markshannon

Description

@markshannon

#144179 added recording of values to the trace recorder.
It also fixed some correctness issues around calls and returns (and sends and yields), but the optimizer hasn't caught up, resulting in a performance drop.

To fix that we need to:

  • optimize away the new guards, using function and code watchers.
  • convert recorded functions and guarded code/function values into known constants in the optimizer
  • Likewise for recorded code objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions