Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK 4.1 (Release)
-
None
-
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.