Skip to content

Refactor backup creation and restoration to stream manga entries - #3850

Open
NGB-Was-Taken wants to merge 1 commit into
mihonapp:mainfrom
NGB-Was-Taken:backup-mem-optim
Open

Refactor backup creation and restoration to stream manga entries#3850
NGB-Was-Taken wants to merge 1 commit into
mihonapp:mainfrom
NGB-Was-Taken:backup-mem-optim

Conversation

@NGB-Was-Taken

Copy link
Copy Markdown
Contributor

Uses less memory and should fix backup/restore failures caused by OOM

Tested on a 21MiB backup file with 463,309 chapters across 14,298 entries.

backup_comparison restore_comparison

Data obtained via dumpsys meminfo app.mihon (monitoring TOTAL PSS, polled every 2 seconds, visualized with Matplotlib)
Backup structure remains unchanged. Verified by cross-restoring between stable and this implementation.

Both backup creation and restoration take slightly longer, which is an acceptable trade-off for less memory usage.

Uses less memory and should fix backup/restore failures caused by OOM
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