Skip to content

[v18] Reduce allocations in app server watcher#62014

Merged
rosstimothy merged 1 commit intobranch/v18from
bot/backport-61985-branch/v18
Dec 5, 2025
Merged

[v18] Reduce allocations in app server watcher#62014
rosstimothy merged 1 commit intobranch/v18from
bot/backport-61985-branch/v18

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #61985 to branch/v18

changelog: Reduced memory consumption of the Application service.

The slice of resources receivied from the watcher contains a copy
of all the items known by the watcher. The app server then cloned
each app via types.Application.Copy to get a handle to a types.AppV3
so that the public address could be set if it was empty. The cloned
apps are then added to a _new_ slice which is provided to the reconciler.

To reduce memory consumption, types.Application.SetPublicAddr was added
to make it possible to set the address without copying an app. The slice
from the resource watcher is now reused instead of allocating a new slice
for the amended applications.
@rosstimothy rosstimothy added this pull request to the merge queue Dec 5, 2025
Merged via the queue into branch/v18 with commit 40dc963 Dec 5, 2025
45 checks passed
@rosstimothy rosstimothy deleted the bot/backport-61985-branch/v18 branch December 5, 2025 09:00
@doggydogworld doggydogworld mentioned this pull request Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants