Skip to content

Commit 6c7f9d3

Browse files
Update lastest guidance
Signed-off-by: Tran Ngoc Nhan <[email protected]>
1 parent 924b0aa commit 6c7f9d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CONTRIBUTING.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ The wiki pages https://github.com/spring-projects/spring-framework/wiki/Code-Sty
8181

8282
To format the code as well as check the style, run `./gradlew format && ./gradlew check`.
8383

84+
NOTE: Since the Stream API is https://github.com/spring-projects/spring-security/issues/7154[much slower] than `for` loop, please use it judiciously.
85+
The team may ask you to change it to a `for` loop if the given code is along a hot path.
86+
8487
[[submit-a-pull-request]]
8588
=== Submit a Pull Request
8689

docs/modules/ROOT/pages/community.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ We welcome your involvement in the Spring Security project.
2121
There are many ways to contribute, including answering questions on Stack Overflow, writing new code, improving existing code, assisting with documentation, developing samples or tutorials, reporting bugs, or simply making suggestions.
2222
For more information, see our https://github.com/spring-projects/spring-security/blob/main/CONTRIBUTING.adoc[Contributing] documentation.
2323

24-
NOTE: Avoid usage of the Stream API for performance reasons. See https://github.com/spring-projects/spring-security/issues/7154[Spring Issue #7154] for more details.
24+
NOTE: Since the Stream API is https://github.com/spring-projects/spring-security/issues/7154[much slower] than `for` loop, please use it judiciously.
25+
The team may ask you to change it to a `for` loop if the given code is along a hot path.
2526

2627
[[community-source]]
2728
== Source Code

0 commit comments

Comments
 (0)