elasticsearch/libs/core
David Turner 9242e012c1
Intern common TimeValue constants (#107985)
The values `30s` and `1m` are used as defaults in various places in ES,
there's no need to create a new `TimeValue` instance each time they
appear. Moreover we already have constants for `0` and `-1`, but we
don't use these constants when reading the values off the wire.

This commit adds constants for `30s` and `1m` and adjusts the
deserialization code to avoid unnecessary allocation for common
`TimeValue` instances.

Relates #107984
2024-04-29 05:41:01 -04:00
..
src Intern common TimeValue constants (#107985) 2024-04-29 05:41:01 -04:00
build.gradle Make ProviderLocator aware of boot qualified exports (#105250) 2024-02-07 09:43:22 -08:00