esquery
esquery copied to clipboard
Add memo cache to improve performance of repeated parse calls
trafficstars
I've got some code that repeatedly calls esquery.query() with the same selector. Obviously this can be quite slow, but instead of rewriting it all I figured it might be worth just caching internally. Keen for thoughts.
As an aside, since tsquery uses esquery.parse , tsquery will get faster too!