ADDITIONAL SYSTEM INFORMATION :
OS: Ubuntu Focal
Arch x86_64
Tested againt main branch and 17.0.3 (openjdk builds from ubuntu)
A DESCRIPTION OF THE PROBLEM :
During transitioning from longs to Instant I realized that tight loops over Instants take a lot of time adding seconds to some start Instant.
The method Instant.plusSeconds delegates to a generic Instant.plus, that has to deal with the nanosecond adjustments. Specializing Instant.plusSeconds can give a significant speedup.
OS: Ubuntu Focal
Arch x86_64
Tested againt main branch and 17.0.3 (openjdk builds from ubuntu)
A DESCRIPTION OF THE PROBLEM :
During transitioning from longs to Instant I realized that tight loops over Instants take a lot of time adding seconds to some start Instant.
The method Instant.plusSeconds delegates to a generic Instant.plus, that has to deal with the nanosecond adjustments. Specializing Instant.plusSeconds can give a significant speedup.
- relates to
-
JDK-8287091 aarch64 : guarantee(val < (1ULL << nbits)) failed: Field too big for insn
-
- Closed
-