[YANGTOOLS-1061] yang-maven-plugin retains YangParser during code generation Created: 07/Jan/20  Updated: 08/Jan/20  Resolved: 08/Jan/20

Status: Resolved
Project: yangtools
Component/s: maven plugin
Affects Version/s: None
Fix Version/s: 3.0.8, 4.0.5, 2.1.16

Type: Bug Priority: High
Reporter: Robert Varga Assignee: Robert Varga
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

We retain YangParser implementation in ProcessorModuleReactor, as it is populated with ASTSchemaSource representation of local modules. The problem is that we do not ditch the parser after we have assembled SchemaContext in the next step, hence we are retaining also all the scratch objects in BuildGlobalContext.

This leads to sub-optimal performance, as all the BuildGlobalContext memory cannot be freed and used to service actual code generation plugins.

Make sure we ditch the parser as soon as we do not needed it.


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