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

Allow SchemaContext shed YANG sources

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      NETCONF/L2FIB test shows that a SchemaContext instance can take up as much as 1.8MB of memory, with a lot of that overhead coming from ModuleImpl retaining a reference to the YANG file source.

      Analyze usage scenarios and we can make the source lazily-loaded, such that we do not keep it in-memory. A typical case when we can load the source is when the model comes from an artifact deployed in the controller, since we can read it from the jar as a resource.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: