Skip to content

perf(tauri): cut realloc churn (#1966) - #1967

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/perf-realloc-churn
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/perf-realloc-churn

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Query path: in-place rows append (no concat), durable buffer + revision, ResultGrid shallow watch (no { deep: true })
  • Stores: in-place connection upsert + durable byId Map; expand as Record; mutate sqlBuffers; memo filteredRootsFor; folders persist skips expand-only writes
  • Rust: batch.reserve after mem::take; UTF-8 text without lossy when valid; drop unused Clone on QueryEvent

Closes #1966
Parent: #1843

Test plan

  • pnpm typecheck + pnpm test
  • cargo check
  • Open large table / run SELECT — grid fills, status row count OK
  • Expand/collapse SERVERS + filter objects — no jank
  • Type in SQL editor — no spurious full-app thrash

Append query rows in place, shallow-watch revision for Glide, upsert
connections without copying the list, keep SERVERS expand as a Record,
memoize object-tree filters, and re-reserve Rust row batches after take.
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 61ac861 into epic/tauri-migration Nov 15, 2026
@github-actions github-actions Bot added frontend Theme parser epic label: frontend performance Theme parser epic label: performance labels Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Theme parser epic label: frontend performance Theme parser epic label: performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant