[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Best way to recursive folders?
From:       Mosfet <dan.duley () verizon ! net>
Date:       2003-05-03 0:41:19
[Download RAW message or body]

Okay, I got a C function that creates or removes thumbnails recursively. Since 
it has a lot of local variables like the dir structures and such it can get 
pretty expensive if you have many depths of recursion.

For this reason I'm thinking of doing a smaller recursive loop that just adds 
folders to process to a single linked list. Then when doing the actual 
processing I'd go through the list iteratively. This would be less memory 
intensive but would require more file processing since your scanning dirs 
twice: once recursively to load up the list to processes and then when your 
processing the resulting list iteratively. 

Any suggestions on the best way to handle recursive directory processing?
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic