Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-05 Thread PICCORO McKAY Lenz
yes, thanks all, the write-acces change all the question.. While if-else is the faster (i see code logic of gambas process), no disk access care checks, so then i use the if-else, due the disk are biger and the OS+files only are 400Mb, also the verification only happen on the user home, so the

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-05 Thread Tobias Boege
On Mon, 04 Nov 2013, Sebastian Kulesz wrote: On Mon, Nov 4, 2013 at 6:43 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Why not simply write benchmark? A benchmark wouldn't be accurate, as it will be IO bound, and being an old machine, better reduce disk IO than CPU usage (I'm

[Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread PICCORO McKAY Lenz
i have several I/O write and i wish to know what its the best choice: 1) If Exist(ruta_img_foto) Then Kill ruta_img_foto or 2) Try Kill ruta_img_foto of course, maybe depends of how the if-else works respect the try logic! please, i need this info, i use low end machines like daruma's

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread Jussi Lahtinen
Why not simply write benchmark? Jussi On Mon, Nov 4, 2013 at 11:30 PM, PICCORO McKAY Lenz mckaygerh...@gmail.comwrote: i have several I/O write and i wish to know what its the best choice: 1) If Exist(ruta_img_foto) Then Kill ruta_img_foto or 2) Try Kill ruta_img_foto of course,

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread nando
I vote for (2) -- Original Message --- From: Jussi Lahtinen jussi.lahti...@gmail.com To: mailing list for gambas users gambas-user@lists.sourceforge.net Sent: Mon, 4 Nov 2013 23:43:10 +0200 Subject: Re: [Gambas-user] if-else vs try who are best faster in machine time? Why not

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread Sebastian Kulesz
On Mon, Nov 4, 2013 at 6:43 PM, Jussi Lahtinen jussi.lahti...@gmail.comwrote: Why not simply write benchmark? A benchmark wouldn't be accurate, as it will be IO bound, and being an old machine, better reduce disk IO than CPU usage (I'm guessing it uses IDE drives; which have low access time

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread Jussi Lahtinen
Why not simply write benchmark? A benchmark wouldn't be accurate, as it will be IO bound, !? Just repeat the commands couple thousand times with either case (file exist and file doesn't exist) and take the mean time for comparison. If the accuracy isn't enough to see the difference in

Re: [Gambas-user] if-else vs try who are best faster in machine time?

2013-11-04 Thread Rolf-Werner Eilert
Am 04.11.2013 22:30, schrieb PICCORO McKAY Lenz: i have several I/O write and i wish to know what its the best choice: 1) If Exist(ruta_img_foto) Then Kill ruta_img_foto or 2) Try Kill ruta_img_foto of course, maybe depends of how the if-else works respect the try logic! please, i