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

ANTLR-generated code uses memory-inefficient lists

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Highest
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      Examination of a heap dump has shown that the ANTLR-generated code uses default-sized ArrayLists to store child nodes. This is quite inefficient where we typically have small number of children.

      Since we have to parse the listener tree multiple times, and need the memory for our real state, we need to make sure we squash these lists to their minimum required memory.

      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:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: