Re: Re: Going up a directory takes long
Home › Forums › Development › Going up a directory takes long › Re: Re: Going up a directory takes long
3 seconds is “quite frustrating”? You have a low tolerance!
What you’re asking for would require a great deal of optimization.
Consider that right now WiiMC sets aside 2000 directory entries for one directory path. Each entry requires approx 1534 bytes. So 2000 x 1534 = approx 3MB. That’s for one directory. If you’re considering caching additional directories, the storage requirements would grow quickly. Consider that although the Wii has a total of 88MB of RAM, a huge amount of that is sucked up by other things. You really don’t have that much to play with.
So in order to do what you’re suggesting, you would have to
-only allocate as much as required for each entry
-track memory closely to ensure all of it is freed when no longer needed and can be reused
-track total memory footprint and expand / shrink as needed (?)
-determine a logical caching scheme
-etc
You would also have to consider that directories can be moved/renamed/contents changed
