Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slightly speed up scripts (backport of elastic#68478) (elastic#68524)
This saves a couple of nanoseconds on ever invocation of a painless script that uses `SearchLookup`. Which is most of the scripts in the hot path. This amounts to a 3.5% performance savings for things like script scoring and runtime fields. We got this by speeding up a method that the async profiler reported as taking 20% of the time running a script score with painless. This drops it to 1%. You'd think that'd result in a 19% speed up. But no such luck.
- Loading branch information