ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37169] - SQLExec.runStatements causes problems for JDK 1.5
Date Fri, 21 Oct 2005 16:02:04 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37169>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37169





------- Additional Comments From bhtek@yahoo.com  2005-10-21 18:01 -------
Dear Mr Kruithof,

I would be hesitant to say something is wrong with JDK 1.5.
After all, the statement does in the case of a SQL that spans HUGE number
of lines to continuously create large Strings. There is nothing wrong
in the JDK 1.5 (execution wise), it is doing what it is being asked
to do. Creating a big number of large strings will take a lot of time.

In JDK 1.4, the hotspot compiler is probably doing some short circuiting
to enhance the performance. The hotspot equivalent in JDK 1.5 is still
immature in comparison.

As per your second comment, I would advise that you re-read that gentlemen's
statement, and retract yours. He suggested that the "endsWith()" method
should be performed on "line" and not "sql". Your statement regarding
StringBuffer and Java just does not make sense.

Reading is fundamental.

Thanks,

Boon


(In reply to comment #1)
> If this statement makes that big a difference, I'd say something is wrong with
> JDK 1.5.0. If a method executes in a few seconds on jdk 1.4 it should not take
> 36 minutes on jdk 1.5. Even if the later platform version offers a more
> efficient method.
> 
> Maybe the 36 minutes is mainly caused by swapping on the local computer, because
> either the 1.5 vm was loaded adittionally, or just because the 1.5 vm is
> slightly larger?
> 
> sql is a StringBuffer(), and afaik not all java versions supported by ant have
> the  endsWith method on the StringBuffer, therefore we cannot improve the
> efficiency in the propesed way.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message