Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-596

Allow event listener Collections to be lazily created in event.EventSource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9
    • None
    • Events & Notifications
    • None

    Description

      It turns out every instance of AbstractConfiguration creates a couple of CopyOnWriteAraryLists for event.EventSource.

      In our usage patterns in most of the cases the lists are not used.

      Can the lists be lazy-initialized? (that is created on the first addListener request)

      Attachments

        1. CoWArrayList1.jpg
          377 kB
          Vladimir Sitnikov
        2. dataflow_commons_configuration_cowarraylist.png
          565 kB
          Vladimir Sitnikov
        3. patch.patch
          6 kB
          Nikita Gureev

        Activity

          People

            Unassigned Unassigned
            vladimirsitnikov Vladimir Sitnikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: