[YANGTOOLS-279] Rewrite YangTemplate in pure java Created: 24/Aug/14 Updated: 10/Apr/22 Resolved: 28/Aug/14 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Description |
|
Tracing base edition startup shows that we spend some 60% of CPU time in xtend's StringConcatenation helper class, invoked from YangTemplate.xtend. Looking at the class it is obvious where all the concatenation comes from, as well as that there is no real reason why the class needs to be in xtend. Rewrite it in pure Java for efficiency. |
| Comments |
| Comment by Robert Varga [ 24/Aug/14 ] |
|
https://git.opendaylight.org/gerrit/10222 |
| Comment by Robert Varga [ 24/Aug/14 ] |
|
With this, we do not need to rewrite anything – we bypass the entire thing at runtime. |