Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
806 stars 66 forks source link

Object.name diagnostic #79

Closed mtrive closed 2 years ago

mtrive commented 2 years ago

Problem statement Object.name property allocates a new string in managed memory every time it is accessed.

Proposed solution Introduce a new diagnostic that suggesting caching Object.name.

mtrive commented 2 years ago

This was implemented by https://github.com/Unity-Technologies/ProjectAuditor/pull/80