Skip to content

Less chatty refreshDebugState#244

Open
fredsa wants to merge 2 commits intosehugg:masterfrom
fredsa:refreshDebugState
Open

Less chatty refreshDebugState#244
fredsa wants to merge 2 commits intosehugg:masterfrom
fredsa:refreshDebugState

Conversation

@fredsa
Copy link
Copy Markdown
Contributor

@fredsa fredsa commented Mar 22, 2026

  • Avoid unnecessarily update the current PC marker
    every tick when there's nothing to update, avoiding
    unnecessary EditorView.updateListener invocations
  • Remove redundant clearCurrentLine call and
    conditional check that is already in setCurrenLine

@fredsa fredsa force-pushed the refreshDebugState branch 2 times, most recently from 9c8f2a0 to a880c5c Compare March 24, 2026 01:31
fredsa added 2 commits March 25, 2026 18:16
Skip unnecessary clearCurrentLine and
setCurrentLine every tick when current
PC marker does not need to be updated,
which in turn avoid unnecessary
EditorView.updateListener invocations
every tick.
Remove clearCurrentLine and conditional
check from refreshDebugState as the same
functionality is duplicated in setCurrenLine.
@fredsa fredsa force-pushed the refreshDebugState branch from a880c5c to 08072b9 Compare March 26, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant