Commit 3f0219f
committed
Factor calendar denominators before multiplying
Reduce intermediate integer sizes by dividing out common denominator factors before multiplication. This speeds up mixed-denominator day-fraction addition while preserving exact results.1 parent 36351ae commit 3f0219f
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2151 | 2151 | | |
2152 | 2152 | | |
2153 | 2153 | | |
2154 | | - | |
2155 | | - | |
2156 | 2154 | | |
2157 | | - | |
2158 | | - | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
2159 | 2159 | | |
2160 | 2160 | | |
2161 | 2161 | | |
| |||
0 commit comments