[hack] Add a filter_map option to Trie search
[hack] Add a filter_map option to Trie search

Summary: Autocomplete needs to be fast, and to achieve this it short-circuits computations after getting first 100 results. I want to replace current "go through all class/function names looking for a match" with a trie lookup, but in order to be able to short-circuit it the same way we need to generate the results as we go, instead of getting the bach of results first and then mapping over them.

Reviewed By: int3

Differential Revision: D3116040

fb-gh-sync-id: ee7c6d17bfba26e2bec8d5cd1876512e8d0c6a5f
fbshipit-source-id: ee7c6d17bfba26e2bec8d5cd1876512e8d0c6a5f

mroch/flow,MichaelDeBoey/flow,jamesgpearce/flow,jeffmo/flow,TiddoLangerak/flow,ForbesLindesay/flow,JonathanUsername/flow,AprilArcus/flow,JonathanUsername/flow,ylu1317/flow,TiddoLangerak/flow,AgentME/flow,claudiopro/flow,gabro/flow,cesarandreu/flow,jdelStrother/flow,gabro/flow,samwgoldman/flow,mroch/flow,jdelStrother/flow,jamesgpearce/flow,claudiopro/flow,samwgoldman/flow,JonathanUsername/flow,d14b3l/flow,JonathanUsername/flow,facebook/flow,fletcherw/flow,AgentME/flow,ylu1317/flow,jeffmo/flow,nmote/flow,MichaelDeBoey/flow,gabro/flow,claudiopro/flow,ForbesLindesay/flow,jgrund/flow,popham/flow,popham/flow,popham/flow,jeffmo/flow,jdelStrother/flow,nmote/flow,d14b3l/flow,gabro/flow,ForbesLindesay/flow,jamesgpearce/flow,gabelevi/flow,ylu1317/flow,gabelevi/flow,cesarandreu/flow,gabelevi/flow,jamesgpearce/flow,jeffmo/flow,JonathanUsername/flow,jamesgpearce/flow,facebook/flow,jdelStrother/flow,chenglou/flow,ylu1317/flow,popham/flow,chenglou/flow,MichaelDeBoey/flow,d14b3l/flow,fletcherw/flow,nmote/flow,samwgoldman/flow,mroch/flow,gabro/flow,AprilArcus/flow,ylu1317/flow,gabelevi/flow,chenglou/flow,gabro/flow,facebook/flow,gabelevi/flow,TiddoLangerak/flow,nmote/flow,fletcherw/flow,jamesgpearce/flow,TiddoLangerak/flow,jamesgpearce/flow,facebook/flow,claudiopro/flow,jgrund/flow,d14b3l/flow,samwgoldman/flow,cesarandreu/flow,d14b3l/flow,jdelStrother/flow,samwgoldman/flow,ForbesLindesay/flow,mroch/flow,popham/flow,MichaelDeBoey/flow,mroch/flow,jgrund/flow,facebook/flow,samwgoldman/flow,nmote/flow,mroch/flow,AgentME/flow,JonathanUsername/flow,fletcherw/flow,jgrund/flow,AprilArcus/flow,popham/flow,JonathanUsername/flow,samwgoldman/flow,gabelevi/flow,popham/flow,facebook/flow,jeffmo/flow,ForbesLindesay/flow,nmote/flow,jdelStrother/flow,cesarandreu/flow,TiddoLangerak/flow,chenglou/flow,facebook/flow,AgentME/flow,AprilArcus/flow,chenglou/flow,ForbesLindesay/flow,nmote/flow,jgrund/flow,AprilArcus/flow,fletcherw/flow,gabelevi/flow,jgrund/flow,claudiopro/flow,AprilArcus/flow,chenglou/flow,d14b3l/flow,MichaelDeBoey/flow,fletcherw/flow,jeffmo/flow,AgentME/flow,mroch/flow