Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> lately upgraded their gallery, but it is still slow. It generates thumbnails on-the-fly

generating thumbnails on the fly doesn't have to be slow. It can be slow and often is as most implementation would rely on something like image magick or similar tool but you can get several order of magnitude faster if you go deeper.

I've spent a lot more time than I would dare to admit on that exact topic while working on my OSS project (https://github.com/mickael-kerjean/filestash) and I figured you could build tailored tool in C that rely on say libjeg and leverage very low level tricks like DCT scaling to do things much faster. Typically in Filestash creating a thumbnail takes about 15ms for a picture taken from my camera and it doesn't make a raspberry pi to break a sweat.



Opening gallery shows you many images, lets say 40. You can't support fast scrolling if you are going to generate 100 thumbnails per second.

Whereas it works for photoprism. I can scroll fast or open a picture and just hold my arrow and it will shift through the pictures.


Unfortunately nextcloud seems pretty slow in general. Seems like their webdav implementation is quite slow as well.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: