Skip to content

Cache expensive calls #22

@jbevain

Description

@jbevain

It's generally recommended to cache the result of expensive calls like Camera.main and GetComponent inside the Start message and avoid calling them in Update/FixedUpdate.

Proposed solution

We should detect those calls, offer to cache the result and replace the invocations by the cached field.

Metadata

Metadata

Assignees

Labels

approved ruleIndicates if the new proposed rule has been approved to move to implementation phase

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions