Skip to content

Reuse floor division quotient in Calendar.ISO month shift - #15878

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:optimize-month-shift-quotient
Sep 10, 2026
Merged

Reuse floor division quotient in Calendar.ISO month shift#15878
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:optimize-month-shift-quotient

Conversation

@preciz

@preciz preciz commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Assisted-by: Codex CLI:GPT 6
Assisted-by: Antigravity:Gemini-3.8-Flash

Compute the shifted month directly from the floor-divided year,
avoiding rem/2 and branching for negative remainders.

Compute the shifted month directly from the floor-divided year,
avoiding rem/2 and branching for negative remainders.

Assisted-by: Antigravity:Gemini-3.8-Flash
@josevalim
josevalim merged commit 2d12b2a into elixir-lang:main Sep 10, 2026
15 checks passed
@josevalim

Copy link
Copy Markdown
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants