elasticsearch/server
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
..
licenses Implement custom JUL bridge (#96872) 2023-06-20 09:48:25 -07:00
src Intern common TimeValue constants (#107985) 2024-04-29 05:41:01 -04:00
build.gradle Add an optimised int8 vector distance function for aarch64. (#106133) 2024-04-12 08:44:21 +01:00