summaryrefslogtreecommitdiff
path: root/include/ruby/encoding.h
diff options
context:
space:
mode:
authorMaciej Mensfeld <maciej@mensfeld.pl>2025-12-18 09:36:35 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-12-26 11:00:51 +0900
commitf09e35ee4a5283c1b6185383f9b89eb4caf99868 (patch)
tree475022ec21b015eaeef3b15e0f00da3e77905201 /include/ruby/encoding.h
parentae46f916f1e686b5f7cc80402f2e8b5f299abc3c (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