You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

&<img src="../resources/images/opentocr.png" title="Open Contents list" border="0"&>
You are here:

2.17.4 Other Optimized Collections

Keyed collections are general purpose and will solve most commercial problems. However, there are other more specialized types of collections that offer more tuned performance and different functionality:

  • Array collections are used where information is stored in a contiguous sequential order and only ever accessed by an index.  In such situations they are substantially faster then keyed collections. Array collections are suitable for, for instance, fast look-ups. 
  • List collections are used to pass around large lists and in drag and drop operations. List collections can be merged together. List collections are unordered and therefore inserts to them are fast.
  • Sorted array collections constantly maintain sort order, also after inserts.

Array Collection Example
List Collection Example 1
List Collection Example 2
Sorted Array Collection Example
&<img src="../resources/images/opentoc-dark.png" title="Open Contents List" border="0"&>

  • No labels