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

Codecs: class overhead

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: PC

    Description

      Analysis on a freshly-booted SP edition reveals that the javassist classpool accounts for 5.6M of memory with only 236 classes. There are, for example, 90 duplicate strings representing the serialize() method signature.

      This overhead will grow as the number of codecs is raised, so putting a cap on it is critical.

      Analyzing our new codecs, it seems we can eliminate a lot of that overhead by having a prototype class which we'll just create a copy of and set its serialize() method body. That should result in improved load times as well as better memory management.

      Note: the scope of this issue is org.opendaylight.yangtools.binding.data.codec.gen.impl.AbstractStreamWriterGenerator, not the previous generation of codecs.

      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: