MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Date routine performance optimization
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
misi01
Advanced


Joined: 02 Dec 2002
Posts: 629
Topics: 176
Location: Stockholm, Sweden

PostPosted: Thu Aug 12, 2010 7:31 am    Post subject: Reply with quote

Another possible thought is the following. Since you assume that the date calculation is what's hogging CPU, why not try something along these lines.

Create a copy of the existing program calling it something else. Instead of doing any date calculations, simply "pretend" that the date calculation for record 1 results in process 1 and do it. Record 2 performs process 2, 3 process 3 etc etc (or simply randomise which process is performed for which record).

Now run the existing code and the new code and compare the CPU time taken - this should give you a good idea as to whether you're attacking the right area for performance
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group