You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:24:36 UTC
[GitHub] [ant] arturobernalg opened a new pull request #157: Performance:
arturobernalg opened a new pull request #157:
URL: https://github.com/apache/ant/pull/157
* Use arrayCopy
* Avoid redundant String.format
* Exit the loop early
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
[GitHub] [ant] bodewig merged pull request #157: Performance:
Posted by GitBox <gi...@apache.org>.
bodewig merged pull request #157:
URL: https://github.com/apache/ant/pull/157
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
[GitHub] [ant] bodewig commented on pull request #157: Performance:
Posted by GitBox <gi...@apache.org>.
bodewig commented on pull request #157:
URL: https://github.com/apache/ant/pull/157#issuecomment-927263551
Thank you @arturobernalg
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
[GitHub] [ant] bodewig commented on a change in pull request #157: Performance:
Posted by GitBox <gi...@apache.org>.
bodewig commented on a change in pull request #157:
URL: https://github.com/apache/ant/pull/157#discussion_r716030810
##########
File path: src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java
##########
@@ -94,9 +94,8 @@ private int moveArgFileEligibleOptionsToEnd(String[] commandLine) {
for(int i = nonArgFileOptionIdx + 1; i < commandLine.length; i++) {
if (!isArgFileEligible(commandLine[i])) {
String option = commandLine[i];
- for(int j = i - 1; j >= nonArgFileOptionIdx; j--) {
- commandLine[j + 1] = commandLine[j];
- }
+ if (i - nonArgFileOptionIdx >= 0)
Review comment:
please add braces even for single line blocks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
[GitHub] [ant] bodewig commented on pull request #157: Performance:
Posted by GitBox <gi...@apache.org>.
bodewig commented on pull request #157:
URL: https://github.com/apache/ant/pull/157#issuecomment-927108994
"performance" is such a big word, I very much doubt there will be any measurable effect on a real build by the changes :-)
anyway, thanks for the patch @arturobernalg . Please bring back the braces and please add yourself to the CONTRIBUTORS and contributors.xml files (unless you are already there and I just didn't see it).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
[GitHub] [ant] arturobernalg commented on a change in pull request #157: Performance:
Posted by GitBox <gi...@apache.org>.
arturobernalg commented on a change in pull request #157:
URL: https://github.com/apache/ant/pull/157#discussion_r716156789
##########
File path: src/main/org/apache/tools/ant/taskdefs/compilers/JavacExternal.java
##########
@@ -94,9 +94,8 @@ private int moveArgFileEligibleOptionsToEnd(String[] commandLine) {
for(int i = nonArgFileOptionIdx + 1; i < commandLine.length; i++) {
if (!isArgFileEligible(commandLine[i])) {
String option = commandLine[i];
- for(int j = i - 1; j >= nonArgFileOptionIdx; j--) {
- commandLine[j + 1] = commandLine[j];
- }
+ if (i - nonArgFileOptionIdx >= 0)
Review comment:
HI @bodewig
I just add the braces.
TY
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org