$ the-wire · showcase
Faster Calendar.ISO shifts, fewer allocations
By RepoJournal · Filed · About Elixir & Phoenix · Composed from the cited sources · methodology
Elixir's Date and Time shift paths get roughly 1.5x faster in one rewrite and 1.2 to 2x in another, cutting allocations in exactly the code that runs on every calendar arithmetic call.
Avoid repeated conversions when shifting Calendar.ISO times elixir-lang/elixir
Duration options and reduction are replaced by tuple dispatch: whole seconds fold into the time tuple and microseconds land in a single shift, with a fast path when the shift is zero. The PR reports roughly 1.5x faster execution and lower memory use, so time arithmetic inside loops gets cheaper without any change to calling code.
Avoid intermediate allocations when shifting Calendar.ISO dates elixir-lang/elixir
The date path swaps duration options and Enum.reduce for inlined duration units and tail-calling pattern dispatch, reported at roughly 1.2 to 2x faster. The stated goal is avoiding intermediate allocations, which matters most where shifts are applied at volume rather than once per request.
Link to GitHub releases page elixir-lang/elixir
José Valim pointed the project's release links at the GitHub releases page. Documentation plumbing only.
Refactor README elixir-lang/elixir
José Valim also refactored the README. Neither this nor the releases link changes runtime behavior.
Avoid intermediate allocations when shifting Calendar.ISO dates (#15927) elixir-lang/elixir
The same date-shift work landed on main, inlining duration units and dispatching on tail-calling patterns in place of Enum.reduce. It is the commit form of the benchmarked change above.