Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-14-2012, 06:35 PM
maks maks is online now
Registered User
 
Join Date: 03-09-2005
Posts: 8
Performance issues when reading program output from Standard Output

Recently upgraded to VBP 8.0 and noticed significant build time increase.
Found out that when a step is configured to "Read program output from" Standard Output and there is a lot of output by the step then it takes much longer to run in v8 compared to v7. Also it is much slower to run the step in v7 then in console window outside of VBP.

For example to execute a batch file that echos 1000 lines takes:
14 seconds in VBP7
1 minute 19 seconds (!!!) in VBP8 (similar in both 32 and 64 bit versions)
1 second in console window or in VBP7 and VBP8 with "Read program output from" set to None.

Is there any configuration or workaround to improve the performance of reading of Standard Output?
Reply With Quote
  #2  
Old 06-14-2012, 07:48 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
At the top of the project, add a Run Script step with code like
Code:
Application.Options.RunProgramOutputWaitTimeout = 500
500 was the v7 default (changed to 5000 in v8.0). You can use a smaller value (say 50) for even faster response, but CPU usage will increase, so be careful about really small values. We will also change the default back to a smaller value. This generally only affects programs that rapidly generate large amounts of output.

Note: The default for this setting was changed to 200 in v8.1.
Reply With Quote
  #3  
Old 06-18-2012, 08:10 AM
maks maks is online now
Registered User
 
Join Date: 03-09-2005
Posts: 8
Thumbs up

I made the suggested change (set RunProgramOutputWaitTimeout to 50) and it made a huge difference. Now our build process is about 30% faster then before we upgraded to v8.

Thanks a lot for great and fast response.
Reply With Quote
Reply

Tags
performance , slow , standard output


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 12:48 AM.


Copyright © 1999-2023 Kinook Software, Inc.