Continue improving the LU section CRUD's performance#905
Conversation
…framework-cli into hond/luparser-perf
Codecov Report
@@ Coverage Diff @@
## master #905 +/- ##
==========================================
+ Coverage 57.15% 57.27% +0.11%
==========================================
Files 220 219 -1
Lines 16159 16195 +36
Branches 2220 2222 +2
==========================================
+ Hits 9236 9275 +39
+ Misses 6368 6365 -3
Partials 555 555
Continue to review full report at Codecov.
|
|
@zhixzhan can you help check this |
|
@Danieladu also, to avoid confusing in PR review, please list more context, what previous you did to improve perf, and what's this one for, and any other further plans to improve performance. |
Sure, my another question is this methods modify on parameter I suggest do not modify parameter |
Yes, the input luresource would not be modified. But each CRUD operator is Iterative. The operator: |
Fixed: #906
Continue improving the LU section CRUD's performance.
What the previous PR #901 has done:
parseTreewithrangein sectioncloneDeepandcloneDeepWithto keep the input resource ImmutableThe effect of the previous PR
What this PR did:
cloneDeepandcloneDeepWithwithJSON.parse(JSON.stringify(luresource));to improve the clone performance.The effect of this PR
Use
cloneDeepandcloneDeepWith: 50msJust use JSON serialization and Deserialization: < 1ms
What next would do:
The effect of the next PR