Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-24697

PriorityQueue should be refactored to either replace or augment the use of Dictionaries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Layout - General
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      The SDK's PriorityQueue class makes use of an array of Dictionary instances to store
      queued layout elements by priority. There are times where this has proven problematic, primarily because as we iterate over the keys of the Dictionary the order does not match the order in which items were added to the queue. At times this has proven astonishing especially for folks assuming visual items would be validated in child order.

      In addition iterating over Dictionary keys (as opposed to a more efficient collection) may be slower than iterating over array or vector elements. We should investigate if we should augment the use of dictionaries with an ordered collection to improve performance.

      The dictionaries were originally added to short circuit the validateNow/validateClient case - we just need to make sure that we don't regress this optimization.

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: