[PR #498] perf: add early-out for transparent overlay in blendColors #1361

Open
opened 2026-03-14 09:32:31 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/498
Author: @simonklee
Created: 1/8/2026
Status: 🔄 Open

Base: mainHead: buffer-blend-early-out


📝 Commits (5)

  • e12f72e perf: add early-out for transparent overlay in blendColors
  • 509b680 Merge branch 'main' into buffer-blend-early-out
  • 12486bf Merge branch 'main' into buffer-blend-early-out
  • ec1488b Merge branch 'main' into buffer-blend-early-out
  • 72d86be Merge branch 'main' into buffer-blend-early-out

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 packages/core/src/zig/buffer.zig (+3 -0)

📄 Description

Add a fast path when overlay alpha is fully transparent, returning text color directly.


🔄 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/anomalyco/opentui/pull/498 **Author:** [@simonklee](https://github.com/simonklee) **Created:** 1/8/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `buffer-blend-early-out` --- ### 📝 Commits (5) - [`e12f72e`](https://github.com/anomalyco/opentui/commit/e12f72e64810759e2a2556b2fac270f8c04fce60) perf: add early-out for transparent overlay in blendColors - [`509b680`](https://github.com/anomalyco/opentui/commit/509b680456f37de505c861811beddd6d14114c1f) Merge branch 'main' into buffer-blend-early-out - [`12486bf`](https://github.com/anomalyco/opentui/commit/12486bf00a035fe7dbe2c2f3ae1563fdeb597906) Merge branch 'main' into buffer-blend-early-out - [`ec1488b`](https://github.com/anomalyco/opentui/commit/ec1488b9ec58940bf2f6f62f1c2f81423bfa5f9b) Merge branch 'main' into buffer-blend-early-out - [`72d86be`](https://github.com/anomalyco/opentui/commit/72d86bedd4fd70e2495f076075c1550f87024e28) Merge branch 'main' into buffer-blend-early-out ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/zig/buffer.zig` (+3 -0) </details> ### 📄 Description Add a fast path when overlay alpha is fully transparent, returning text color directly. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/opentui#1361
No description provided.