This is a micro-optimization to improve the performance of the XHPAST linter.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rPHUc76b692447af: Micro-optimization for linting performance
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
I'm not entirely convinced that this is a good idea, but thought I'd pose the question.
Personally, it feels like assert_instances_of is something that should almost be a no-op when not running in development mode.
Comment Actions
I think this is fine to remove any time it shows up on a profile. I've made similar changes once or twice elsewhere.
In the general case I still want it to run in production, because it makes debugging easier.
My only thought is that maybe we should leave a comment when we remove it so it doesn't get confused for an oversight later.