Scanning directory tree - too slow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bboldi

    Scanning directory tree - too slow

    I wrote a recursive algorythm to scan a comlete directory structure
    (2-3 levels deep) with few hundred pictures in it (i just need to store
    filenames in a cache file). it's taking forewer :(. i used readdir
    function. Any idea to a faster solution?

    ps.: sorry for my English.

  • Erwin Moller

    #2
    Re: Scanning directory tree - too slow

    bboldi wrote:
    [color=blue]
    > I wrote a recursive algorythm to scan a comlete directory structure
    > (2-3 levels deep) with few hundred pictures in it (i just need to store
    > filenames in a cache file). it's taking forewer :(. i used readdir
    > function. Any idea to a faster solution?[/color]

    Hi,

    Is it really that slow?
    I used that approach a few times and it was very fast...

    Can you show us some code?

    [color=blue]
    >
    > ps.: sorry for my English.[/color]

    No problem, it is no worse than mine. ;-)

    Regards,
    Erwin Moller

    Comment

    Working...