perf: skip redundant coordinator state resets + bump version to 0.4.9 - #62
Merged
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
devin-ai-integration
Bot
force-pushed
the
devin/optimize-rendering-latency-4
branch
from
July 27, 2026 03:43
17048c0 to
a8db2a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR contains two changes:
count == 0fast path in_clear_progress_stack_locked. When there is no rendered progress stack, the function only needs to restore cursor visibility and flush any deferred log records. It was also re-clearing six coordinator state fields on every log/column row even though those fields are reset when the stack is actually cleared by the render paths. Dropping those redundant__setattr__calls removes a measurable chunk of per-row latency for the column and log APIs.pyproject.tomlversion from0.4.8to0.4.9.Profiling
Local
cProfileharness (1000 iterations per API, 120 columns):Progress paths are essentially unchanged; column and log paths gain ~9% and ~10% respectively.
All 141 tests pass locally.
Link to Devin session: https://app.devin.ai/sessions/45e5067b04374a8381566d710d0311da
Requested by: @Qubitium