Home

anomalyco/opentui

Status:Indexed
Analyzed 4d ago6K+ starsTypeScript

OpenTUI is a library for building terminal user interfaces (TUIs)

Back to Pull Requests
#471Open
Moderate Review

perf(text-buffer-view): stream word wrap for large chunks

by simonkleeJan 4, 2026
View on GitHub

Summary

This PR optimizes word wrapping for large text chunks in the `text-buffer-view` component. It introduces a streaming approach for chunks exceeding 64KB, improving performance by only computing word boundaries as needed instead of precomputing for the entire file.

Changes

+622 additions-136 deletions

Impact Areas

Text Rendering PerformanceLarge File HandlingWord Wrapping Logic