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

yang-maven-plugin retains YangParser during code generation

    XMLWordPrintable

Details

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

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: