Community
Participate
Working Groups
Running an ant script with console log output enabled requires much more time run a script (at a minimum 3 times longer). Steps to reproduce: NOTE: -this requires cvs on the path -pass in an empty directory as the value for the install property, i.e - Dinstall=c:\temp 1. Invoke ant on the script below with console log output disabled and enabled. Observe difference in time required to run the script (requires cvs on path): <?xml version="1.0" encoding="UTF-8" ?> - <!-- Fetch script for feature@org.eclipse.jdt-feature --> - <project name="FetchScript" default="fetch" basedir="."> <property name="quiet" value="true" /> - <target name="fetch"> <mkdir dir="${install}/features" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/features" package="org.eclipse.jdt-feature" tag="v20020601a" quiet="${quiet}" /> <mkdir dir="${install}/plugins" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt" tag="v20020601a" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.core" tag="v_254" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.debug.ui" tag="v20020531" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.debug" tag="v20020531" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.junit" tag="v20020601a" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.launching" tag="v20020531" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.ui" tag="v20020601a" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.junit" tag="v20020601a" quiet="${quiet}" /> <cvs cvsRoot=":pserver:anonymous@dev.eclipse.org:/home/eclipse" dest="${install}/plugins" package="org.eclipse.jdt.doc.user" tag="v20020601" quiet="${quiet}" /> </target> </project>
Does your script generate a lot of output? I believe we currently siphon off output a character at a time. Also, there is a delay between bursts of siphoning. Both of these could reduce performance.
Yes, there is a lot of output.
this should improve with my changes to buffer the input streams. it is worth looking at what is happening in LogConsoleDocument.append(..) as well.
Using the new launch config support (which will become the only way to run scripts), the debug console is used. This appears to fix the performance problems (noting bug 25437).
Please verify, Jared.
Verified.