[PR #268] [CLOSED] Optimizations for TextView #891

Closed
opened 2026-03-04 01:08:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rivo/tview/pull/268
Author: @urandom
Created: 4/14/2019
Status: Closed

Base: masterHead: textview-optimizations


📝 Commits (2)

  • 7fc7ecd Optimizations for TextView
  • 8d70a30 Optimize the decomposeString usage

📊 Changes

3 files changed (+71 additions, -54 deletions)

View changed files

📝 table.go (+1 -1)
📝 textview.go (+57 -45)
📝 util.go (+13 -8)

📄 Description

Only clear the index when the textview dimensions change or the text
itself is cleared.
Add to the index when new text is added to the view.

Fixes #266


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rivo/tview/pull/268 **Author:** [@urandom](https://github.com/urandom) **Created:** 4/14/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `textview-optimizations` --- ### 📝 Commits (2) - [`7fc7ecd`](https://github.com/rivo/tview/commit/7fc7ecd31b7af2c134936d03066209cf7fc6249e) Optimizations for TextView - [`8d70a30`](https://github.com/rivo/tview/commit/8d70a30e01e5fa1e9d3533fa066c773038e2ff91) Optimize the decomposeString usage ### 📊 Changes **3 files changed** (+71 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `table.go` (+1 -1) 📝 `textview.go` (+57 -45) 📝 `util.go` (+13 -8) </details> ### 📄 Description Only clear the index when the textview dimensions change or the text itself is cleared. Add to the index when new text is added to the view. Fixes #266 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:08:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#891
No description provided.