Skip to content

turbo: inline property fetches to local variabes #15339

Description

@staabm

Feature request

we want to investigate whether it makes a measurable difference if we inline property-fetches and use local variables instead.
nikic/PHP-Parser#1171 shows this can have a marginal impact, but it might make a bigger impact for phpstan as a whole, if implemented in phpstan-turbo.

it might be doable in a similar way how getter-inlining works atm

as a first iteration we could do so for readonly properties

Did PHPStan help you today? Did it make you happy in any way?

No response

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions