Skip to content

perf(editor): honor syntax highlight isolate threshold (#424) - #436

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/424-syntax-highlight-threshold
Jul 27, 2026
Merged

perf(editor): honor syntax highlight isolate threshold (#424)#436
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/424-syntax-highlight-threshold

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • highlightOffMainThread uses inline path when code.length < 8192
  • Above threshold still uses compute
  • Regression test for small buffer

Closes #424
Parent: #414

Test plan

  • flutter test test/core/editor/syntax_highlight_isolate_test.dart

Small buffers highlight inline; large buffers still use compute(),
avoiding isolate overhead on every keystroke in short SQL editors.

Closes #424
@github-actions github-actions Bot added editor Code/SQL editor performance Theme parser epic label: performance labels Jul 27, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 13417c8 into dev Jul 27, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/424-syntax-highlight-threshold branch July 27, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor Code/SQL editor performance Theme parser epic label: performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant