Giter Site home page Giter Site logo

Comments (4)

joachimtingvold avatar joachimtingvold commented on July 16, 2024

(I'm just putting old "future enhancement ideas" on the paper now that we have a GitHub (-: )

from myphotoshare.

paolobenve avatar paolobenve commented on July 16, 2024

I had thought about something this problem, too. I have 38k photos, and I'm afraid that some day I'm going to reach the os limit.

My idea was to implement a folder structure based on md5: calculate md4 of the path+name or of cachepath and take the first two chars of it as folder name, this way chache will be subdivide into 256 folders

from myphotoshare.

joachimtingvold avatar joachimtingvold commented on July 16, 2024

That would make it somewhat hard to "locate" files manually?

How about using the first two characters of the album as the folder name? That would theoretically limit it to 26^2 folders (or some more if you count non-english characters), but would in reality be much less. It would also make it somewhat intuitive to locate the cached files (if you'd like to alter/manage/delete/whatnot them), as you'd only need the album name to derive the folder. In addition, this would cause all the files for the same album to be in the same folder (and not split into several folders, which would be the case in your example).

from myphotoshare.

paolobenve avatar paolobenve commented on July 16, 2024

done in cacheSubDirs branch

for a given photo, the thumbnails are put in a cache subfolders identified by the first two characters of the md5 of the image path+name, the subdir is saved in the json files so that it's retrieved easily

the json files carry the cache path of every photo, so that a js call is saved

from myphotoshare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.