mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #474] [MERGED] bench: replace the measureForDimensions bench #562
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#562
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/474
Author: @simonklee
Created: 1/5/2026
Status: ✅ Merged
Merged: 1/5/2026
Merged by: @kommander
Base:
main← Head:fix-measure-dimensions-bench📝 Commits (1)
76ce73cbench: model Yoga layout measure passes📊 Changes
1 file changed (+27 additions, -8 deletions)
View changed files
📝
packages/core/src/zig/bench/text-buffer-view_bench.zig(+27 -8)📄 Description
Sorry, for revisiting this so quickly. I'm still getting my head around the code-base. I think I added a PR for that benchmark change a little too quick and it didn't really capture what I wanted to test.
I replace the measureForDimensions bench with a layout-pass simulation that does multiple measure calls per step. This matches the real Yoga pattern during streaming and keeps an intrinsic width case.
Drop the old static/streaming variants that only measured once per token as they didn't add much value.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.