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
- Branch
- master
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 7602 Build 8244: [Placeholder Plan] Wait for 30 Seconds Build 8243: arc lint + arc unit
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.