#105845 - 2003-10-15 12:24 AM
Re: KiXgolf: PxMagic
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
READLINE is by far the slowest part of the code. That function is a real dog when looking at performance.
See the details below. code:
Reading image file from C:\Data\Scripts\Golf\PxMagic\balloons.pgm Start Read: 18:19:31 End Read: 18:20:25 Start Display: 18:20:27 End Display: 18:20:38
Reading image file from C:\Data\Scripts\Golf\PxMagic\blackbuck.ppm Start Read: 18:20:47 End Read: 18:23:53 Start Display: 18:23:58 End Display: 18:24:10
Reading image file from C:\Data\Scripts\Golf\PxMagic\circle_ascii.pbm Start Read: 18:24:20 End Read: 18:24:21 Start Display: 18:24:22 End Display: 18:24:28
In order to debug the code change the image order in KixGolf_pxMagic.kix. Do circle_ascii.pbm, and FEEP files first. [ 15. October 2003, 00:27: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#105846 - 2003-10-15 02:20 AM
Re: KiXgolf: PxMagic
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Ok, first crack at this golf thingy...
I can read all and display .pbm at this point:
code:
KiXtart KiXtart Version = 4.21 KiXforms Version = 2.3.0.42 KiXGolf Script = kixgolf_pxmagic.kix
Computer OS = Windows 2000 Professional CPU = Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Speed = 1998 MHz Memory = 254 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images Processing Start = 2003/10/14 20:27:02.784 Processing End = 2003/10/14 20:27:50.813 Duration = 0000/00/00 00:00:48.028 # Images = 2 KiXGolf Score PxMagic = 56 KiXGolf Score PxMRead = 208 KiXGolf Score PxMDisplay = 324 KiXGolf Score Total = 588 Thank you for participating in KiXtart Golf!
[ 15. October 2003, 03:32: Message edited by: Chris S. ]
|
|
Top
|
|
|
|
#105852 - 2003-10-15 08:30 AM
Re: KiXgolf: PxMagic
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
This READ performance sucks but...
code:
KiXtart KiXtart Version = KiXtart 2001 4.22 Release Candidate 1 KiXforms Version = 2.3.0.41 KiXGolf Script = kixgolf_pxmagic.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 698 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images Processing Start = 2003/10/15 01:11:38.595 Processing End = 2003/10/15 02:37:38.235 Duration = 0000/00/00 01:25:59.640 # Images = 8 KiXGolf Score PxMagic = 51 KiXGolf Score PxMRead = 193 KiXGolf Score PxMDisplay = 310 KiXGolf Score Total = 554 Thank you for participating in KiXtart Golf!
I have also coded up what should be a much faster version while I waited for this one to execute. But it will score somewhere between this score and the my last post. [ 15. October 2003, 08:31: Message edited by: Howard Bullock ]
|
|
Top
|
|
|
|
#105853 - 2003-10-15 08:47 AM
Re: KiXgolf: PxMagic
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Here is one for performance with some additional strokes.
code:
KiXtart KiXtart Version = KiXtart 2001 4.22 Release Candidate 1 KiXforms Version = 2.3.0.41 KiXGolf Script = kixgolf_pxmagic.kix
Computer OS = Windows 2000 Professional CPU = Intel Pentium III Speed = 698 MHz Memory = 512 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images Processing Start = 2003/10/15 02:46:25.613 Processing End = 2003/10/15 02:55:21.333 Duration = 0000/00/00 00:08:55.720 # Images = 8 KiXGolf Score PxMagic = 51 KiXGolf Score PxMRead = 241 KiXGolf Score PxMDisplay = 308 KiXGolf Score Total = 600 Thank you for participating in KiXtart Golf!
|
|
Top
|
|
|
|
#105854 - 2003-10-15 08:56 AM
Re: KiXgolf: PxMagic
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Howard,
Am I reading that right?
1 hour 25 minutes 59 seconds to complete this task!!
Dang - Who has time to wait around for something like that. Wow - I'd have broke out of it thinking it was a hung script or process.
|
|
Top
|
|
|
|
#105859 - 2003-10-15 11:22 AM
Re: KiXgolf: PxMagic
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Almost there... little less Lonk
|
|
Top
|
|
|
|
#105862 - 2003-10-15 01:05 PM
Re: KiXgolf: PxMagic
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Crap!! Holy Cow!!
Go to get a couple winks and look what happens I though I would have at least a couple days to relax.
|
|
Top
|
|
|
|
#105864 - 2003-10-15 01:37 PM
Re: KiXgolf: PxMagic
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Here's my entry...
code:
KiXtart KiXtart Version = 4.21 KiXforms Version = 2.3.0.42 KiXGolf Script = kixgolf_pxmagic.kix
Computer OS = Windows 2000 Professional CPU = Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Speed = 1998 MHz Memory = 254 MB
KiXGolf Scoring Engine Scoring Engine = 3.0.3
KiXtart Golf Score Tournament = KiXtart Golf: PxMagic - Read & Display PxM Images Processing Start = 2003/10/15 03:29:44.359 Processing End = 2003/10/15 03:59:17.979 Duration = 0000/00/00 00:29:33.620 # Images = 8 KiXGolf Score PxMagic = 51 KiXGolf Score PxMRead = 205 KiXGolf Score PxMDisplay = 397 KiXGolf Score Total = 653 Thank you for participating in KiXtart Golf!
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
|