Skip to content

Fix LogAdapter perf (#96) and add cache pruning (#97) - #99

Merged
rossigee merged 1 commit into
masterfrom
fix/log-perf-and-cache-pruning
Oct 6, 2026
Merged

rossigee merged 1 commit into
masterfrom
fix/log-perf-and-cache-pruning

Conversation

@rossigee

@rossigee rossigee commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Changes

Closes #96, #97

- Switch LogAdapter to ListAdapter + DiffUtil for efficient updates instead of full list copies + notifyDataSetChanged.
- Only auto-scroll log to top if user is already near the top (prevents yanking history while reading).
- Add created_at to CacheEntry + Room migration v2->v3.
- Add pruneOldEntries() that keeps the most recent 5000 cache entries.
- Call prune after every insert in DigestCache.

Closes #96, #97
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

🤖 Automated Code Review

@rossigee
rossigee merged commit 1da339b into master Oct 6, 2026
3 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.

LogAdapter copies full list and scrolls on every update

1 participant