avogelba / WinDirStats

WinDirStats - Windows Directory Statistics, private clone from:
https://bitbucket.org/windirstat/windirstat
GNU General Public License v2.0
5 stars 0 forks source link

Big drive / many files optimizations #100

Open avogelba opened 10 years ago

avogelba commented 10 years ago

Originally reported by: Anonymous


Hi,

It seems that WinDirStat has problems on my computer with larger drivers (3 TB) or with a lot of files (1,500,000+). WinDirStat responds very slowly and sometime does not 'respond'.

Would you investigate for me if WinDirStat could be optimized, so that it may be more stable with bigger drives?

Thanks in advance.

Best of regards Casper.


avogelba commented 9 years ago

Original comment by Alexander Riccio (Bitbucket: alexander_riccio, GitHub: Unknown):


I bet this specific issue is due to a (well intentioned!) misuse of LockWindowUpdate. Raymond Chen has a series of articles on "Poor misunderstood LockWindowUpdate", ( 2 ), ( 3 ), ( 4 ).

TL, DR: use

#!c++
SetRedraw( FALSE );
SetRedraw( TRUE );

wherever you use

#!c++
LockWindowUpdate( );
UnlockWindowUpdate( );
avogelba commented 10 years ago

Original comment by Oliver (Bitbucket: assarbad, GitHub: assarbad):


Please read this first and give me enough information so I can even attempt to reproduce it. Thanks.