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

Drop SchemaNode Set-returning methods to return Collection

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 5.0.0
    • None
    • parser
    • None

      Our reference implementation is based on EffectiveStatements, which means we do have a Collection of statements readily available.

      Things like getTypeDefinitions() are returning a Set require not only filtering that collection, but also making sure there are no duplicates, which are forcing us to eagerly process all substatements.

      Since users typically are only iterating over the returned Set, dropping to returning a Collection means we can evaluate the statements lazily, improving performance.

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

              Created:
              Updated:
              Resolved: