Quote:
Originally Posted by kiwidude
What happens when a user clears the search and goes back to viewing all the books? Will that be slower than it is now?
|
Yes, because it must redo the sort, this time on the entire cache. Clearing the search will cost the same as a sort currently costs, where before it was close to free.
Edit:
Quote:
Originally Posted by kiwidude
From a search perspective I would have thought optimising for the 99% case of a far smaller search subset and having that displayed faster would be a nice win. I guess the question is "how much" slower is it for very large searches?
|
The worst case slowdown is the time it currently takes to do a sort. One would pay that cost on every search, instead of only when sorting.