theia-ide / sprotty

A next-gen web-based graphics framework
Apache License 2.0
138 stars 23 forks source link

Improve performance of SModelIndex.all() #201

Closed spoenemann closed 6 years ago

spoenemann commented 6 years ago

SModelIndex.all() currently builds a huge array containing all elements. In most cases this array is processed with filter and forEach. An iterator approach would be more efficient here.