Details
-
Epic
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
-
None
-
YANG javadoc snippet optimization
Description
This is a top-level tracker issue, which will need to be addressed in mdsal-binding-generator-impl and in mdsal-binding2-generator-impl.
The code here is twisted and inefficient, causing huge memory usage for strings during code generation, especially with large models.
Two things need to happen:
- YANG snippet needs to be generated and filtered as a CharSource, e.g. lazily, without instantiating the full thing before the class is actually output
- Snippet generation needs to work on top of org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement view of the world, so that 'uses' are not expanded, but rather the snippet quotes the actual YANG text
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 67891,8 | Expose EffectiveModuleStatement prefix mapping | master | yangtools | Status: MERGED | +2 | +1 |
| 67893,4 | Add YangTextSnippet to yang-model-export | master | yangtools | Status: MERGED | +2 | +1 |
| 68031,14 | Use YangTextSnippet for generation | master | mdsal | Status: MERGED | +2 | +1 |
| 68032,3 | Eliminate use of twirl in mdsal-binding2-generator-impl | master | mdsal | Status: ABANDONED | 0 | -1 |
| 68191,6 | Eliminate xtend from mdsal-binding-generator-impl | master | mdsal | Status: MERGED | +2 | +1 |
| 68254,4 | Re-organize YANG snippet generation and comment confusion | master | mdsal | Status: MERGED | +2 | +1 |
| 68466,2 | Add DeclaredStatementFormatter | master | yangtools | Status: MERGED | +2 | +1 |
| 68657,4 | MDSAL-301: Binding v2 - Rework javadoc generation | master | mdsal | Status: MERGED | +2 | +1 |
| 70665,3 | Use YangTextSnippet for generation | stable/oxygen | mdsal | Status: ABANDONED | 0 | +1 |