Filtering items gets slow when there are more than several hundred items. Move filtering op from O(n) to O(log n), i.e. use hash tables or a dedicated indexing library.