Currently a bunch of properties in the AASTNode class are public instead of using explicit setter methods. This doesn't seem to have any effect on performance as far as I can tell
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Commits
- rPHU67f26422b91a: Use setters instead of public properties
Ran the following script with 100 iterators:
Before
Average: 2.679129s Total: 267.912916s
After
Average: 2.648229s Total: 264.822857s
Diff Detail
Diff Detail
- Repository
- rPHU libphutil
- Branch
- master
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 8899 Build 10420: Run Core Tests Build 10419: arc lint + arc unit
Event Timeline
Comment Actions
Maybe double check with PhabricatorApplicationTransactionEditor.php? __phutil_library_map__.php has a lot of lines, but the tree isn't actaully that complex.
src/parser/aast/api/AASTNode.php | ||
---|---|---|
92 | Hmm, this seems wrong/odd... adding an assert_instances_of call here doesn't seem to impact the execution time; Average: 2.559327s Total: 255.932677 |
Comment Actions
With PhabricatorApplicationTransactionEditor:
Before
Average: 0.545871s Total: 54.587076s
After
Average: 0.542363s Total: 54.236334s