Skip to content

Commit

Permalink
New diagrams for README.MD (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivovarit authored Aug 28, 2024
1 parent e67ffbe commit 3287e32
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@ All parallel collectors are one-off and must not be reused.
#### Batching Collectors
By default, all `ExecutorService` threads _compete_ for each task separately - which results in a basic form of _work-stealing_, which, unfortunately, is not free, but can decrease processing time for subtasks with varying processing times.

However, if the processing time for all subtasks is similar, it might be better to distribute tasks in batches to avoid excessive contention:
However, if the processing time for all subtasks is similar, it might be better to distribute tasks in batches to avoid excessive contention.

![](docs/batching.png)
![](docs/default.svg)

![](docs/batched.svg)

Batching alternatives are available under the `ParallelCollectors.Batching` namespace.

Expand Down
13 changes: 13 additions & 0 deletions docs/batched.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/batching.png
Binary file not shown.
13 changes: 13 additions & 0 deletions docs/default.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3287e32

Please sign in to comment.