Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 88
Cache expensive calls #22
Copy link
Copy link
Open
Labels
approved ruleIndicates if the new proposed rule has been approved to move to implementation phaseIndicates if the new proposed rule has been approved to move to implementation phase
Description
Activity
Metadata
Metadata
Assignees
Labels
approved ruleIndicates if the new proposed rule has been approved to move to implementation phaseIndicates if the new proposed rule has been approved to move to implementation phase
It's generally recommended to cache the result of expensive calls like
Camera.mainandGetComponentinside theStartmessage and avoid calling them inUpdate/FixedUpdate.Proposed solution
We should detect those calls, offer to cache the result and replace the invocations by the cached field.