icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

Investigate whether calendrical calculations can be sped up

Open robertbastian opened this issue 1 year ago • 1 comments
trafficstars

Paper: https://arxiv.org/abs/2102.06959 Talk: https://www.youtube.com/watch?v=0s9F4QWAl-E

Interesting slide: Screenshot 2024-09-19 at 18 17 10

I think we're using the Reingold/Dershowitz algorithms, so looks like we can do a lot better.

robertbastian avatar Sep 19 '24 17:09 robertbastian

We have put some time into improving the performance of the Reingold-Dershowitz algorithms, and they are substantially faster in our Rust implementation than in Lisp for instance, but I don't know how the benchmarks compare.

sffc avatar Sep 19 '24 20:09 sffc

We've started integrating some of the algorithms via https://github.com/unicode-org/icu4x/pull/6870.

As previously discussed, we're focusing on the algorithm improvements in fixed to/from iso code (but not as much the other ones; decided on a case by case basis)

Manishearth avatar Aug 18 '25 14:08 Manishearth