OpenSearch/modules/lang-expression/src
Alan Woodward 25a0addb17 Don't double-wrap values (#54432)
After commit #53661 converted the lang-expressions module to using
DoubleValuesSource, we've seen a performance regression for expressions
that use geopoints. Some investigation suggests that this may be due to
GeoLatitudeValueSource and GeoLongitudeValueSource wrapping their
per-document values in a DoubleValues.withDefault() class. Values exposed
via expressions already have a '0' default value, so this extra wrapping is
unnecessary, and is directly on the hot path. This commit removes the extra
wrapping.
2020-03-31 10:50:13 +01:00
..
main Don't double-wrap values (#54432) 2020-03-31 10:50:13 +01:00
test Rename AtomicFieldData to LeafFieldData (#53554) 2020-03-17 12:30:12 +00:00