Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Mar 3, 2025

  • Tests written, or not not needed

We were using raw bitmaps for media thumbnails, which resulted in lag and problematic scrolling performance. Additionally, with the multi-select feature for each binding, resetting the large thumbnails led to significant delays. To address these issues, downscaling has been implemented in this pull request to improve performance.

Before

before.mp4

After

after.mp4

@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch 3 times, most recently from fbf4dbc to 88c7e90 Compare March 14, 2025 14:58
@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch 2 times, most recently from 04c6416 to 63dc791 Compare March 19, 2025 11:05
this.listener = listener;
}

public String getImageKey() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function

@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch from 63dc791 to 88de95a Compare March 20, 2025 08:01
@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch from 7fd90e3 to 84b984a Compare March 31, 2025 07:27
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
@alperozturk96 alperozturk96 force-pushed the dont-use-raw-bitmap-for-thumbnails branch from 84b984a to 6d12355 Compare April 2, 2025 09:16
@github-actions
Copy link

github-actions bot commented Apr 2, 2025

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/14628.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link

github-actions bot commented Apr 2, 2025

Codacy

Lint

TypemasterPR
Warnings5454
Errors1111

SpotBugs

CategoryBaseNew
Bad practice6565
Correctness5858
Dodgy code292292
Experimental11
Internationalization77
Malicious code vulnerability11
Multithreaded correctness77
Performance5151
Security1818
Total500500

@tobiasKaminsky tobiasKaminsky merged commit f576b25 into master Apr 2, 2025
22 of 25 checks passed
@tobiasKaminsky tobiasKaminsky deleted the dont-use-raw-bitmap-for-thumbnails branch April 2, 2025 12:53
@alperozturk96 alperozturk96 added the performance 🚀 Performance improvement opportunities (non-crash related) label May 2, 2025
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.

3 participants