RepoJournal
Elixir & Phoenix

Elixir & Phoenix

Elixir, Phoenix, LiveView, and Ecto - the BEAM web stack

Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Elixir & Phoenix Full archive →

The Wire · Showcase

ELIXIR CUTS DURATION PARSING AND TUPLE MATH OVERHEAD

By RepoJournal · Filed · About Elixir & Phoenix

Two core optimizations shipped overnight eliminate redundant passes and stack allocations across Calendar and tuple operations.

Calendar.ISO.parse_duration/1 now applies the leading duration sign as components parse instead of making a second pass for negative durations [1] [3], cutting unnecessary work on every duration calculation your app touches. The same PR ditches keyword-list tails and recursive lookups for ordered positions, compacting the logic further. Separately, tuple aggregates in sum and product operations switched to tail recursion [2] , eliminating intermediate allocations that used to build up on the stack and only resolve on the unwind. Both changes are invisible to your code but measurable in the hot paths. The tail recursion approach "aggregates as it goes, without those allocations" [2], preserving float precision by maintaining original order rather than reversing for speed. These are exactly the kind of under-the-hood wins that compound across millions of operations.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Optimize Calendar.ISO.parse_duration/1 ↗ elixir-lang/elixir
  2. [2] use tail recursion in tuple aggregates ↗ elixir-lang/elixir
  3. [3] Optimize Calendar.ISO.parse_duration/1 (#15709) elixir-lang/elixir

Quick answers

What shipped in Elixir & Phoenix on August 2, 2026?
Two core optimizations shipped overnight eliminate redundant passes and stack allocations across Calendar and tuple operations. In total, 2 commits and 2 pull requests landed.
Who contributed to Elixir & Phoenix on August 2, 2026?
2 developers shipped this update, including preciz and dkuku.
What were the notable Elixir & Phoenix updates?
Optimize Calendar.ISO.parse_duration/1, use tail recursion in tuple aggregates, and Optimize Calendar.ISO.parse_duration/1 (#15709).

More from Elixir & Phoenix

Daily updates, in your inbox

Follow Elixir & Phoenix

Keep up with Elixir & Phoenix in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?