Skip to content

[Performance]: Avoid recomputing same results in analyzing custom modifier calls #2291

Description

@nicolaassolini-qntm

The result here probably does not change for a specific key once set? In which case it may be worthwhile to pass the already derived results back into the analysis as a starting point?

BUT: This should be done as a follow up (so you can open an issue), not in this PR, even if my guess is right. It is a performance optimisation, and we do not know whether this has big performance implications yet.

Originally posted by @maximilianruesch in #2274 (comment)

analyze_modifier_calls expands the call graph by computing calls to custom-modified methods. In ENGINE.check, we recompute analyze_modifier_calls for scratch every time (till fix point), but since we do not recompute the resolved_modified_calls, there is room for performance improvement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-compilerArea: CompilerC-perfCategory: PR/issue with code/suggestions for performance improvements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions