From 052f5a8f3d868f842c5f4ffbcd6e6e6276abb468 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 12 Sep 2022 20:42:02 -0700 Subject: [PATCH] Add perf. notes --- README.md | 12 ++++++++---- appinfo/info.xml | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 30e5fdd8..6491d881 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ * **🎦 Slideshow**: View photos from your timeline and folders easily. * **📱 Mobile Support**: Relive your memories on devices of any shape and size through the web app. * **🗑️ Recycle**: Select and delete multiple photos and videos at once. -* **⚡️ Fast**: Memories is extremely fast. Period. +* **⚡️ Fast**: Memories is extremely fast. Period. More details below. ## 🚀 Installation @@ -33,10 +33,14 @@ ## Why a separate app? The approach of this app is fundamentally different from the official Nextcloud Photos app, which is very lightweight and works entirely using webdav. This app instead maintains special metadata in a separate table on the backend, and thus can be considered to have different objectives. +## Performance +- Once properly configured, Memories is **extremely fast**, possibly even the fastest photo viewer there is. +- On a server with relatively cheap hardware (`Intel Pentium G6400 / 8GB RAM / SSD`), loading the timeline takes only `~400ms` on a laptop (`Intel Core i5-1035G1 / Windows 11 / Chrome`) for a library of `~17000 photos` totaling `100GB`. The test was performed on Nextcloud 24 with `nginx`, `php-fpm` and `mariadb` running in Docker. +- For best performance, install the [preview generator](https://github.com/rullzer/previewgenerator) and make sure HTTP/2 is enabled for your Nextcloud instance. + ## Notes -1. The app has been tested with 100GB worth of ~25k photos. -1. You may need to configure the Nextcloud preview generator and Imagemagick / ffmpeg to support all types of images and videos (e.g. HEIC). If using the official docker image, add `OC\Preview\HEIC` to `enabledPreviewProviders` in your `config.php`. -1. If local time is not found in the photo (especially for videos), the server timezone is used. +- You may need to configure the Nextcloud preview generator and Imagemagick / ffmpeg to support all types of images and videos (e.g. HEIC). If using the official docker image, add `OC\Preview\HEIC` to `enabledPreviewProviders` in your `config.php`. +- If local time is not found in the photo (especially for videos), the server timezone is used. ## Special Thanks 🙏🏻 Nextcloud team. At least one half of the code is based on the work of the [Nextcloud Photos](https://github.com/nextcloud/photos). \ No newline at end of file diff --git a/appinfo/info.xml b/appinfo/info.xml index 25146ce3..eabc77a3 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -13,6 +13,7 @@ * **🎦 Slideshow**: View photos from your timeline and folders easily. * **📱 Mobile Support**: Relive your memories on devices of any shape and size through the web app. * **🗑️ Recycle**: Select and delete multiple photos and videos at once. +* **⚡️ Fast**: Memories is extremely fast. Period. ## 🚀 Installation