View previous topic :: View next topic
|
Author |
Message |
Mansik Kim
New User
Joined: 15 Dec 2006 Posts: 29 Location: Korea
|
|
|
|
Hello,
I working REXX program read and calculation multi line(about 10million line).
This job used 30 min cpu time and 50 min elapsed time and
about 20% cpu used during job running.
I want to have solution for reduce cpu and elapsed time.
Please let me have.
Thanks,
Mansik. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Possibly, start by showing code snippet. Bit off topic but a "10million" is number of records the REXX work on or the number-of-code-lines in REXX? If it's later, possibly, just post the "calcualtion-part" from your REXX-code (and a TRACE)... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
And "10million" is number of records in input or the number-of-code-lines in REXX? |
just run a small experiment, without carrying on any computation
just read the 10 millions record...
and You will see that the most of the time is spent doing the I/O
You will see that what You ask cannot be done, REXX i/o is just a resource hog.
not to talk about stemmed variables. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks Enrico. Knowing REXX is not a good choice for "huge input", I was beaten up by
Quote: |
I working REXX program read and calculation multi line(about 10million line). |
and was fearful once I asked "Possibly, start by showing code snippet" and edited it later to add more confusion... . Just wanted to avoid some one posting a huge code... .
Sorry for taking the discussion out of the context... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
my bad I had forgot the smiley |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The TS may have dissappeared . . .
Quote: |
How can I reduce CPU usage in REXX program. |
Re-write in a language better suited for high volume data and calculations . . . |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the TS has this habit, I checked his other topics!
I deleted a few of them,where the TS asked, more info was requested, nothing was provided
( that' s why the <proof> is not there )
probably time to warn. |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Anuj Dhawan wrote: |
"10million" is number of records the REXX work on or the number-of-code-lines in REXX? |
I think is the appropriate emotion!
My monster REXX program (10 panels, 9 sql cursors, 4 ispf tables) has around 1500 lines of code (i.e. comments and empty lines excluded). |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
10,000,000 lines of input processed in 50 minutes by Rexx - that is pretty good going. |
|
Back to top |
|
|
abhisingh
New User
Joined: 26 Apr 2012 Posts: 10 Location: India
|
|
|
|
With my limited knowledge..
REXX is doing well what it is suppose to do..
Your code is of huge line count with various i/o that's why there is some performance issue. Better go for other powerful language for ur task. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
This REXX needs to be in a museum of sorts. It should be in the Hall of Bad Decisions that Made Sense at the Time.
My guess is that someone had a need, realized they could cobble a good REXX in a few hours, tested it with a few dozen lines of input. That saved them the hours of paperwork and meetings needed to get a real program integrated into the system.
Now, the REXX has consumed FAR more time and money than the real program PLUS the time and money needed to have gotten it implemented.
So to all the paperwork wonks out there: Take notice! |
|
Back to top |
|
|
|