AND( AND( Child ) ... ) -> AND( Child ... )
AND( OR( Child ) ... ) -> AND( Child ... )
This simple optimization results in 5-6% performance improvement in the benchmark with 2000 serialized FuzzyFindRequests.
Differential D52016
[clangd] Don't create child AND and OR iterators with one posting list kbobyrev on Sep 13 2018, 12:48 AM. Authored by
Details AND( AND( Child ) ... ) -> AND( Child ... ) This simple optimization results in 5-6% performance improvement in the benchmark with 2000 serialized FuzzyFindRequests.
Diff Detail Event Timeline
Comment Actions LGTM with a nit.
|
Maybe special-case a single-iterator case in createAnd instead? Same with createOr.
Any cons to doing so?