Skip to content

perf(go): reduce retained heap usage - #50

Merged
samuelbles07 merged 2 commits into
developmentfrom
go/feat/decrease-heap-usage
Jul 27, 2026
Merged

perf(go): reduce retained heap usage#50
samuelbles07 merged 2 commits into
developmentfrom
go/feat/decrease-heap-usage

Conversation

@samuelbles07

Copy link
Copy Markdown
Collaborator

Summary

Reduce retained heap use in AirGradient Go without changing provisioning behavior.

Changes

  • Consolidate display buffers and add display geometry coverage.
  • Construct Stationary and Portable provisioning managers only when their flows activate.
  • Cover provisioning-manager lifecycle boundaries in host tests.

Validation

  • cmake --build tests/build
  • ctest --test-dir tests/build --output-on-failure (1273 passed)
  • . "$HOME/Tools/esp/esp-idf/export.sh" && idf.py -C products/go build
  • Hardware: saved-credential boot, BLE provisioning, and Wi-Fi provisioning

Display updates already serialize renderer and worker ownership, so remove the duplicate snapshot and partial-region buffers to recover 8 KB.
@samuelbles07
samuelbles07 merged commit 52ac138 into development Jul 27, 2026
7 checks passed
@samuelbles07
samuelbles07 deleted the go/feat/decrease-heap-usage branch July 27, 2026 21:33
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