diff options
| author | Maciej Mensfeld <maciej@mensfeld.pl> | 2025-12-18 09:36:35 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-12-26 11:00:51 +0900 |
| commit | f09e35ee4a5283c1b6185383f9b89eb4caf99868 (patch) | |
| tree | 475022ec21b015eaeef3b15e0f00da3e77905201 /include/ruby/encoding.h | |
| parent | ae46f916f1e686b5f7cc80402f2e8b5f299abc3c (diff) | |
[ruby/date] [ruby/date] Optimize Gregorian date conversions with Neri-Schneider algorithm
Replace floating-point arithmetic and iterative loops with pure integer
operations for ~40% faster Date operations. Date.ordinal and Date.commercial
are ~2x faster due to O(1) first-day-of-year calculation.
Reference: https://arxiv.org/abs/2102.06959
https://github.com/ruby/date/commit/cc639549d6
Diffstat (limited to 'include/ruby/encoding.h')
0 files changed, 0 insertions, 0 deletions
