Skip to content

Refresh entries with a subprocess#1438

Merged
kolunmi merged 5 commits intomainfrom
subprocess-refresh
Apr 23, 2026
Merged

Refresh entries with a subprocess#1438
kolunmi merged 5 commits intomainfrom
subprocess-refresh

Conversation

@kolunmi
Copy link
Copy Markdown
Collaborator

@kolunmi kolunmi commented Apr 23, 2026

Introduces bazaar-refresh-worker which pulls remote flatpak repo content outside of the main bazaar process. Once this subprocess exits, the many many allocations made by the complicated refresh routines, especially inside libxmlb, can be reaped instantly in a way that is more effective than using malloc_trim(). This significantly reduces memory usage over time.

Introduces `bazaar-refresh-worker` which pulls remote flatpak repo content
outside of the main bazaar process. Once this subprocess exits, the many many
allocations made by the complicated refresh routines, especially inside libxmlb,
can be reaped instantly in a way that is more effective than using
`malloc_trim()`. This significantly reduces memory usage over time.
@kolunmi
Copy link
Copy Markdown
Collaborator Author

kolunmi commented Apr 23, 2026

the main bazaar process now sits at around 225-275 mb according to btop, even after many refreshes

@AlexanderVanhee
Copy link
Copy Markdown
Collaborator

LGTM

@kolunmi kolunmi merged commit b9a7650 into main Apr 23, 2026
2 checks passed
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.

2 participants