Test it - profile something simple, as it should be trivial.
Also, remember that databases are designed to handle just this kind of tasks, so they will naturally be good at that. Even a naive binary search would have only 17 comparisons for this, so 25k elements are few. The real problem is sorting, but it has been conquered to death over the past 60 years.
David Lively
source share