upvote
I assume the reason this is faster is because they cache for specific values of M?
reply
Imagine the filter is not trivial but instead involves deep inspection of each item and calls to an external service. Bounding the max number of expensive calls and enabling parallelism is more important than returning exactly the requested number of items.

For a real world example, imagine a personalized search query that ranks and filters based on the user’s history.

reply
Was thinking it just means that HN used to reuse the query results for the stories of the frontpage (which this person said was limited to 1500). That way, they don't have run a separate query for the Ask HN's section, since running an extra query is typically a lot slower than running some fairly straightforward code. But this is just my interpretation of what the OP was saying.
reply
Sometimes you don't need faster, you just need "runs on the end users hardware instead of ours" ;)
reply
Yeah, the other responses I got seem to reinforce that that's the main idea.
reply