[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
Platform: 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
https://git.opendaylight.org/gerrit/10223
https://git.opendaylight.org/gerrit/10224
https://git.opendaylight.org/gerrit/10225
https://git.opendaylight.org/gerrit/10226
https://git.opendaylight.org/gerrit/10227
https://git.opendaylight.org/gerrit/10228

Comment by Robert Varga [ 24/Aug/14 ]

With this, we do not need to rewrite anything – we bypass the entire thing at runtime.

Generated at Wed Feb 07 20:52:46 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.