Skip to content

perf(bitmap): recycle - #17786

Open
alperozturk96 wants to merge 1 commit into
masterfrom
perf/bitmap-usage
Open

alperozturk96 wants to merge 1 commit into
masterfrom
perf/bitmap-usage

Conversation

@alperozturk96

Copy link
Copy Markdown
Collaborator

Implements: #17640

Changes

  • After using bitmaps recycles them
  • Implements ComponentCallbacks2 for FileThumbnailGenerator.kt so that we can do cleanup job.
  • Uses ThumbnailUtils.OPTIONS_RECYCLE_INPUT so that we can recycle the input in extractThumbnail(Bitmap,int,int,int)
  • Moves Bitmap related logics to BitmapUtils.kt instead having them in ThumbnailCacheManager.java

How to test?

  • Check avatar generation in the file list and file detail
  • Check media and album tabs
  • Check previews in file listing
  • Check previews in unified search

Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 added 3. to review performance 🚀 Performance improvement opportunities (non-crash related) labels Oct 8, 2026
@alperozturk96 alperozturk96 changed the title perf(bitmap): usage perf(bitmap): recycle Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

Codacy

SpotBugs

CategoryBaseNew
Bad practice3030
Correctness5454
Dodgy code177177
Experimental11
Malicious code vulnerability22
Multithreaded correctness2626
Performance3534
Security1616
Total341340

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 15e6d85
Version 17786
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review performance 🚀 Performance improvement opportunities (non-crash related)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant