-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
192 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,9 @@ | |
<div class="sidebar-scrollbox"> | ||
<ol class="chapter"><li class="spacer"></li><li class="chapter-item expanded affix "><a href="introduction.html">Introduction</a></li><li class="chapter-item expanded affix "><li class="part-title">Processes</li><li class="chapter-item expanded "><a href="process-run.html"><strong aria-hidden="true">1.</strong> Running a Process</a></li><li class="chapter-item expanded "><a href="process-output.html"><strong aria-hidden="true">2.</strong> Output</a></li><li class="chapter-item expanded "><a href="process-input.html"><strong aria-hidden="true">3.</strong> Input</a></li><li class="chapter-item expanded "><a href="process-stderr.html"><strong aria-hidden="true">4.</strong> Stderr and Error Handling</a></li><li class="chapter-item expanded affix "><li class="part-title">Input/Output</li><li class="chapter-item expanded "><div><strong aria-hidden="true">5.</strong> Reading Stuff</div></li><li class="chapter-item expanded "><div><strong aria-hidden="true">6.</strong> Writing Stuff</div></li><li class="chapter-item expanded affix "><li class="part-title">Higher Order Functions for AsyncIterable</li><li class="chapter-item expanded "><div><strong aria-hidden="true">7.</strong> Enumeration</div></li><li class="chapter-item expanded "><div><strong aria-hidden="true">8.</strong> Compatibility with Streams</div></li><li class="chapter-item expanded "><a href="performance.html"><strong aria-hidden="true">9.</strong> Performance</a></li><li class="chapter-item expanded affix "><li class="part-title">Concurrency and Parallel Processing</li><li class="chapter-item expanded affix "><li class="part-title">Miscellaneous</li><li class="chapter-item expanded "><div><strong aria-hidden="true">10.</strong> Sleep</div></li><li class="chapter-item expanded "><div><strong aria-hidden="true">11.</strong> Range</div></li><li class="chapter-item expanded "><div><strong aria-hidden="true">12.</strong> Shuffle</div></li><li class="chapter-item expanded affix "><li class="part-title">Concepts</li><li class="chapter-item expanded "><a href="text-data.html"><strong aria-hidden="true">13.</strong> Working with Text Data</a></li><li class="chapter-item expanded "><a href="transform.html"><strong aria-hidden="true">14.</strong> Transformers</a></li><li class="chapter-item expanded affix "><li class="part-title">Examples</li><li class="chapter-item expanded "><div><strong aria-hidden="true">15.</strong> Embed a Bash Script</div></li><li class="chapter-item expanded "><a href="example-counting-words.html"><strong aria-hidden="true">16.</strong> Counting Words</a></li><li class="chapter-item expanded "><a href="example-concurrent-processing.html" class="active"><strong aria-hidden="true">17.</strong> Concurrent Processing</a></li><li class="chapter-item expanded "><a href="example-io.html"><strong aria-hidden="true">18.</strong> Input and Output</a></li></ol> | ||
</div> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<!-- Track and set sidebar scroll position --> | ||
|
@@ -179,9 +181,9 @@ <h1 id="concurrent-processes"><a class="header" href="#concurrent-processes">Con | |
most storage. <code>proc</code> makes it possible to run <code>ls --summarize</code> with parallelism | ||
matching the number of CPU cores available (or whatever concurrency you | ||
specify). The specific methods that support concurrent operations are | ||
<a href="https://deno.land/x/[email protected].5/mod3.ts?s=Enumerable&p=prototype.concurrentMap">.concurrentMap()</a> | ||
<a href="https://deno.land/x/[email protected].6/mod3.ts?s=Enumerable&p=prototype.concurrentMap">.concurrentMap()</a> | ||
and | ||
<a href="https://deno.land/x/[email protected].5/mod3.ts?s=Enumerable&p=prototype.concurrentUnorderedMap">.concurrentUnorderedMap()</a>.</p> | ||
<a href="https://deno.land/x/[email protected].6/mod3.ts?s=Enumerable&p=prototype.concurrentUnorderedMap">.concurrentUnorderedMap()</a>.</p> | ||
<p>To list the <code>s3</code> buckets in your AWS account from terminal:</p> | ||
<pre><code class="language-sh">aws s3 ls | ||
</code></pre> | ||
|
@@ -221,7 +223,7 @@ <h1 id="concurrent-processes"><a class="header" href="#concurrent-processes">Con | |
) | ||
</code></pre> | ||
<p>Use <code>nice</code> because <em>this will eat your server otherwise.</em> The method | ||
<a href="https://deno.land/x/[email protected].5/mod3.ts?s=Enumerable&p=prototype.concurrentUnorderedMap">.concurrentUnorderedMap()</a> | ||
<a href="https://deno.land/x/[email protected].6/mod3.ts?s=Enumerable&p=prototype.concurrentUnorderedMap">.concurrentUnorderedMap()</a> | ||
will, by default, run one process for each CPU available concurrently until all | ||
work is done.</p> | ||
<p>The result will look something like this:</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.