Menu

Performance

Help
2004-08-05
2013-04-08
  • Nobody/Anonymous

    Is there any work around available not to collect the Dir-Info in advance? Specialy while collecting the root dir info.
    I have about 300.000 photos within about 20.000 folders and you can imagine that it will take hours before a gallery will be loaded

     
    • Martin Theimer

      Martin Theimer - 2004-08-16

      hmm... puh. thats a lot.
      i will take a look at that.
      maybe a parameter to turn the recursive directory scanning off.

       
    • jostin

      jostin - 2005-02-25

      I have over 100 folders and about 1800 pictures.  It seems to check the folder layout on EVERY page, and it takes a good 20-30 seconds just to flip to the next picture.  If there was a way to turn off folder checking and just have an option in the admin panel to rebuild the tree, then i might actualy be able to use this. 

      I've written perl code that performs a similar task.  To save time i have it only check certain time consuming tasks when the site first loads.  there is a small link on all pages to run these tasks again.  Something like this would be a major performance boost.

      Is there any way in a config file to disable folder tree checking?  just as a temorary fix?

      Dont get me wrong, this code rocks.  I've tried it on small folder trees and it works great.  This issue seems to be the only major thing keeping me from using it regularly.

      Thanks

       
    • jostin

      jostin - 2005-02-25

      I just realized that i was assuming it was storing the list of directories somewhere, but it doesnt seem to do this.  I highly recomend setting this up.  For the moment i'm going to try to figure out how to cut out the function that loads the folder pulldown menu

       
    • jostin

      jostin - 2005-02-26

      Sorry to hog this thread.

      Original poster-
      The following is what i did as a temporary fix.

      In the wrapper.php file, you will find the following 2 lines of code in 2 different places-
      $whole_tree = array();
      getDirTree($filesystem_pAG_path_abs, $whole_tree);

      If comment out all 4 lines, it will skip the folder tree search.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.