From 4081d74f154b05a90566acfbaadc7da882ead2af Mon Sep 17 00:00:00 2001 From: Marcin Mielniczuk Date: Sun, 15 Oct 2017 12:52:54 +0200 Subject: [PATCH] Document that the sum in the examples is a parallel reduction --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9048ef8f4..a18ea3967 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,9 @@ fn sum_of_squares(input: &[i32]) -> i32 { } ``` +Note that the `sum()` call is not a sequential one. It is, precisely, +a logarithmic, tree-like reduction known from, for example, OpenMP. + Or, to increment all the integers in a slice, you could write: ```rust