Orcohen33 opened a new pull request, #2924: URL: https://github.com/apache/incubator-eventmesh/pull/2924
Fixes #1538 . ### Motivation The method uses an integer-based for loop to iterate over a java.util.List, by calling List.get(i) each time through the loop. This can lead to poor performance and issues when using other collection types. The goal of this change is to improve performance and flexibility by using iterators or foreach loops instead. ### Modifications Replaced the integer-based for loop with an iterator or foreach loop in the method located at org/apache/eventmesh/common/protocol/grpc/protos/BatchMessage.java line 1558 and 1560  ### Documentation - Does this pull request introduce a new feature? (no) - If yes, how is the feature documented? (not applicable) - If a feature is not applicable for documentation, explain why? This pull request does not introduce a new feature, it only improves the performance and flexibility of the existing code. - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation (not applicable) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
