static MultiMap<S, WebNode> ai_indexWebs_parallel2(Collection<Web> webs) ctex { print("Making index in parallel."); time "Parallel indexing" { L<MultiMap<S, WebNode>> indexes = parallelMap(chunksOf1000(webs), f ai_indexWebs_serial); } time "Tying up" { MultiMap<S, WebNode> index = caseInsensitiveSyncListMultiMap(); for (MultiMap<S, WebNode> i : indexes) index.putAll(i); } ret index; }
Began life as a copy of #1011919
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011926 |
Snippet name: | ai_indexWebs_parallel2 |
Eternal ID of this version: | #1011926/4 |
Text MD5: | eb7d9cd3d6f56b0e1f50f21f4073492b |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-23 14:47:15 |
Source code size: | 438 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 477 / 516 |
Version history: | 3 change(s) |
Referenced in: | [show references] |