From: Zurd <zu...@ya...> - 2006-11-17 13:24:50
|
> Perhaps I was not clear. I meant to say that v2.0 > loads *faster* than the old versions, particularly > faster than 1.3. As for operation on files, I haven't > noticed a significant difference, but v2.0 'feels' > faster overall. I just installed version 1.3 to see the difference, it's about the same thing really, both opens with around 1-2 seconds of delay, but I think it's possible that 2.0 feels faster because I'm now using $window->show_all(), instead of showing every items one by one (button, menu item, radio button, entry box,etc.), perl shows everything in one shot, so we're not seeing items created one by one, it's all appearing together. Now with the operation of files, that is quite interesting actually. I used my watch as a timer and renamed 300 files, it took 30 seconds, it seemed that the application was frozen but it was still processing. 30 seconds is a long time. So I've gone into the function of check_before_renaming and done some modification, now it's taking half of the time to rename the 300 files, so 15 seconds. A nice improvement. You will not see how slow it is if you rename only a few files. Here's what my latest test shows when renaming : 100 files : 3 seconds 200 files : 8 seconds 250 files : 11 seconds 300 files : 15 seconds But still... it is really troublesome, some people might want to rename 10,000 files and having to wait maybe 5 minutes for it is completely unnaceptable. So I just tought of a new way that would be much faster to do the renaming but I will have to implement the undo function first. Here's what the new function will do : Check if the file with the new name already exist, if not, rename and pass to the second file. If it ever sees a file with the new name that already exists, print an error message that the renaming cannot be done because of the error and call the undo function. So it'll be like no renaming has been done. This was added in the To Do. __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Courriel vous offre la meilleure protection possible contre les messages non nollicités http://mail.yahoo.ca Yahoo! Courriel |