Ids query is faster very much than ids filter ,why?

thank you for your reply, but i can't understand why query is faster,if you can provide some url to explain this case? thank you