From: Thomas L. <ta...@ec...> - 2002-03-22 16:55:08
|
On Mon, Feb 25, 2002 at 03:34:27PM +0000, Thomas Leonard wrote: [ load thumbnails in a sub-process ] > The reason is that bugs in gdk-pixbuf keep crashing the filer, so I want > to move it to a sub-process. This means we need a way to send the image > back to the filer, and the easiest way to do that is to save it in > .thumbnails (since we'd normally do that anyway). This is done now. Images over 50K are created by running a subprocess and getting it to save the thumbnail, which the main process loads when the child quits. This means that the filer stays very responsive when loading large images. It also means that (large) corrupted images won't crash the filer anymore. Small images are done in-process because: - Creating a subprocess, and reading and writing files is a lot of overhead for a small image. - Examining the ~/.thumbnails directory would create a thumbnail for each thumbnail... ;-) -- Thomas Leonard http://rox.sourceforge.net ta...@ec... ta...@us... |