Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1061

yang-maven-plugin retains YangParser during code generation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 3.0.8, 4.0.5, 2.1.16
    • None
    • maven plugin
    • None

      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.

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: