---
title: "Who's on call? How we improved schedule rendering performance 2,500x"
description: "incident.io's on-call schedule renderer, which computes future shifts on the fly from rotation config, working hours and fair-scheduling rules, became dramatically faster through a series of fixes culminating in a ~2,500x speedup."
url: "https://swe.quest/articles/who-s-on-call-how-we-improved-schedule-rendering-performance-2-500x-8f76a3cfe21d61b4"
canonical: "https://incident.io/blog/whos-on-call-how-claude-helped-us-calculate-this-2-500-x-faster"
source: "incident.io"
published: "2026-04-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 17
tags: ["performance","go","algorithms","ai-coding","debugging"]
---

# Who's on call? How we improved schedule rendering performance 2,500x

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2026-04-28, 17 min read, Case study. Original: [https://incident.io/blog/whos-on-call-how-claude-helped-us-calculate-this-2-500-x-faster](https://incident.io/blog/whos-on-call-how-claude-helped-us-calculate-this-2-500-x-faster)

## Summary

incident.io's on-call schedule renderer, which computes future shifts on the fly from rotation config, working hours and fair-scheduling rules, became dramatically faster through a series of fixes culminating in a ~2,500x speedup. Earlier wins came from request validation and context cancellation after a runaway 2092 date, replacing repeated linear entry splitting with sorted binary-search insertion (850ms to 100ms, though a Go pointer-copy aliasing bug forced rollbacks), and removing hot-path waste like string weekday comparisons, unused UUID generation, repeated time.LoadLocation and clock-time parsing for about 40% more. The largest gain came from Claude Opus 4.6 building a V2 renderer that avoids iterating every handover, validated by requiring identical output to V1 across the existing test suite and rolled out behind a feature flag with an audit job.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- Go slices and pointers ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- CPU profiling and flame graphs ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- Time zones and date arithmetic

## Keywords

incident.io, Claude Opus 4.6, Claude Code, Grafana, pprof flame graphs

## Related posts

- [How we improved availability through iterative simplification](https://swe.quest/articles/how-we-improved-availability-through-iterative-simplification-1aa63e0def5687e6.md): GitHub Engineering · 2024-07-23 · Medium · 6 min read · Performance engineering, MySQL, Ruby, Observability, Deployment
  GitHub cut timeouts in its Rails monolith with small, measured changes found through Datadog metrics, Splunk logs and custom MySQL slow-query monitors.
- [Making fetch happen: Building a general-purpose query and render scheduler](https://swe.quest/articles/making-fetch-happen-building-a-general-purpose-query-and-render-scheduler-3be522c5ec84d80d.md): Datadog Engineering · 2023-04-17 · Medium · 10 min read · Web performance, Frontend, Browsers, JavaScript
  Datadog replaced a tangled ~20-parameter dashboard scheduler with separate, general-purpose query and render schedulers used by widgets across the product.
- [Building On-call: Time, timezones, and scheduling](https://swe.quest/articles/building-on-call-time-timezones-and-scheduling-f978980b35f41e6a.md): incident.io · 2024-07-18 · Medium · 11 min read · Time & clocks, Scheduling, Testing, PostgreSQL, Go
  incident.io's on-call scheduler computes who is on shift from rotations with working hours, round-robin handovers and overrides, and getting it right depends on being precise about local time, offsets, IANA timezones, instants and durations.
- [Battling database performance](https://swe.quest/articles/battling-database-performance-5c5eb431f69f9020.md): incident.io · 2023-04-20 · Medium · 10 min read · PostgreSQL, Performance engineering, Observability, Go, Incidents & postmortems
  Intermittent API timeouts at incident.io over two weeks traced back to requests blocking on Go's database/sql client-side connection pool, with no single slow query or pool to blame.
- [Incident Report: November 25th, 2025](https://swe.quest/articles/incident-report-november-25th-2025-0f5ac3667ca5f9ba.md): Railway · 2025-11-25 · Medium · 3 min read · Incidents & postmortems, Resilience, Scheduling
  Slow GitHub API calls (about 4x normal p95 latency) during peak hours backed up Railway's Temporal-based task queue, causing workers to run out of memory and crash in a cascading thundering-herd pattern as surviving and newly started workers were overwhelmed by the backlog.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
