selectionService: toggleSelectAll performance enhancement

Batch add items to the selectedItems array instead of adding them one by one.