pelias / placeholder

stand-alone coarse geocoder
https://placeholder.demo.geocode.earth
MIT License
313 stars 35 forks source link

use LIKELY() to improve query performance #218

Closed missinglink closed 2 years ago

missinglink commented 2 years ago

the changes in https://github.com/pelias/placeholder/pull/216 introduced a performance regression for the query san francisco, washington.

as there are now two methods of matching tokens the query planner may not be sure which to choose, by labelling the new check as LIKELY we can give the query planner a hint.