[Thunar-dev] Thumbnails

Benedikt Meurer benedikt.meurer at unix-ag.uni-siegen.de
Tue Jun 28 21:49:13 CEST 2005


Ori Bernstein wrote:
> On Tue, 28 Jun 2005 20:44:14 +0200
> Benedikt Meurer <benedikt.meurer at unix-ag.uni-siegen.de> said:
> 
> 
>>Ori Bernstein wrote:
>>
>>>One important thing though, is that the list gets displayed quickly, and
>>>doesn't freeze the filemanager while listing (Nautilus (2.10) *does* freeze when
>>>listing large dirs).
>>
>>Thunar 1.0 will most probably also freeze, since loading stuff happens 
>>in the main thread, while the thumbnailer runs in a separate thread. 
>>This isn't much of a problem tho, since the listing is very fast even 
>>with large directories.
>>
>>Loading directory listing in a separate thread would be possible, but 
>>from my experiments, it adds too much overhead, due to synchronization 
>>issues.
> 
> Fair enough. well, when loading the directories, can you go through
> while (gtk_events_pending())
> 	gtk_main_iteration();
> to prevent  the UI from locking up? Then again, if it's the laying out of the
> icons in the ExoIconView that's causing the problem, this probably wouldn't
> make a difference.

Won't help. Reading the folder contents is done pretty fast and 
processing gtk events in between would only slow down things while the 
UI would look even more sluggish. There are also various reentrancy 
problems involved if you would allow gtk events to be processed while 
loading a folder (from the main thread).

Benedikt



More information about the Thunar-dev mailing list