---
title: "How GitHub Actions renders large-scale logs"
description: "GitHub Actions replaced a third-party virtualization library with a custom one to render job logs of up to 50k lines smoothly, including on mobile."
url: "https://swe.quest/articles/how-github-actions-renders-large-scale-logs-b2578d67d9b7f62e"
canonical: "https://github.blog/engineering/architecture-optimization/how-github-actions-renders-large-scale-logs/"
source: "GitHub Engineering"
published: "2021-03-25"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["frontend","web-performance","javascript","browsers"]
---

# How GitHub Actions renders large-scale logs

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2021-03-25, 6 min read, Case study. Original: [https://github.blog/engineering/architecture-optimization/how-github-actions-renders-large-scale-logs/](https://github.blog/engineering/architecture-optimization/how-github-actions-renders-large-scale-logs/)

## Summary

GitHub Actions replaced a third-party virtualization library with a custom one to render job logs of up to 50k lines smoothly, including on mobile. Usage data showed 99.51% of jobs have fewer than 50k lines, so the team dropped data virtualization and kept only UI virtualization, truncating oversized logs behind a download link. The custom library estimates line heights instead of measuring them and uses relative rather than absolute positioning, so imprecise estimates don't clip lines. It keeps a single scrollable area with non-virtualized sticky step headers and adds or removes DOM nodes in clusters of 50 lines to limit mutations during fast scrolling.

Written by swe.quest, not by the author.

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

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Browsers](https://swe.quest/tags/browsers.md) (Web & mobile)

## Prerequisites

- DOM rendering basics
- list virtualization ([easy posts on Virtualization](https://swe.quest/tags/virtualization.md?difficulty=easy))

## Keywords

GitHub Actions, list virtualization, DOM

## Related posts

- [Rendering huge pull requests in the GitHub Copilot app](https://swe.quest/articles/rendering-huge-pull-requests-in-the-github-copilot-app-dfdd1afcfdc347d9.md): GitHub Engineering · 2026-09-23 · Medium · 13 min read · Frontend, Web performance, Performance engineering, Testing, Observability
  The GitHub Copilot app's pull request view stays responsive on a 2,200-file, million-line diff with 400+ review comments by splitting document height into two geometries: exact, precomputed prefix-summed code rows and lazily measured dynamic blocks for comments, drafts and composers.
- [Crafting a better, faster code view](https://swe.quest/articles/crafting-a-better-faster-code-view-4c1560c4b1796bf2.md): GitHub Engineering · 2023-06-21 · Medium · 13 min read · Web performance, React, Frontend, Accessibility, Browsers
  GitHub's new React-based code view renders an 18,000-line file in under a second instead of nearly 27 seconds.
- [The uphill climb of making diff lines performant](https://swe.quest/articles/the-uphill-climb-of-making-diff-lines-performant-3c1abf458c8d7ced.md): GitHub Engineering · 2026-04-03 · Medium · 10 min read · Web performance, React, Frontend, Performance engineering
  GitHub rebuilt the React diff-line components in the pull request Files changed tab after large PRs pushed the JavaScript heap past 1 GB, DOM counts above 400,000 and INP to unusable levels.
- [From latency to instant: Modernizing GitHub Issues navigation performance](https://swe.quest/articles/from-latency-to-instant-modernizing-github-issues-navigation-performance-d76fe4f2daa6064a.md): GitHub Engineering · 2026-05-14 · Medium · 13 min read · Web performance, Caching, Frontend, Local-first & sync, Browsers
  GitHub made Issues navigation feel instant by moving to a local-first, stale-while-revalidate model: render issue pages from client-side data first, then revalidate in the background.
- [Updating Illustrations at Scale](https://swe.quest/articles/updating-illustrations-at-scale-a7b35ba7b6163692.md): Shopify Engineering · 2021-06-03 · Medium · 8 min read · Design systems, Developer tools, Go, JavaScript, Performance engineering
  Shopify's Polaris team built @shopify/get-repo-images, an open-source crawler that finds image files and every line of code referencing them across GitHub repositories, then serves a browsable, sortable website so illustrators could update illustrations fragmented across thousands of repos during a design-language refresh.

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)
