From a69d604cc24cb969335d64aecfb8849756221503 Mon Sep 17 00:00:00 2001 From: Milosz Lopatto Date: Thu, 20 Mar 2025 16:11:02 +0100 Subject: [PATCH] add parallel execution note to mapreduce --- docs/design_pattern/mapreduce.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/design_pattern/mapreduce.md b/docs/design_pattern/mapreduce.md index b8a2975..de680e3 100644 --- a/docs/design_pattern/mapreduce.md +++ b/docs/design_pattern/mapreduce.md @@ -67,4 +67,7 @@ shared = { flow.run(shared) print("Individual Summaries:", shared["file_summaries"]) print("\nFinal Summary:\n", shared["all_files_summary"]) -``` \ No newline at end of file +``` + +> **Performance Tip**: The example above works sequentially. You can speed up the map phase by running it in parallel. See [(Advanced) Parallel](../core_abstraction/parallel.md) for more details. +{: .note } \ No newline at end of file