1 | static MultiMap<S, WebNode> ai_indexWebs_parallel2(Collection<Web> webs) ctex {
|
2 | print("Making index in parallel.");
|
3 | |
4 | time "Parallel indexing" {
|
5 | L<MultiMap<S, WebNode>> indexes = parallelMap(chunksOf1000(webs), f ai_indexWebs_serial); |
6 | } |
7 | |
8 | time "Tying up" {
|
9 | MultiMap<S, WebNode> index = caseInsensitiveSyncListMultiMap(); |
10 | for (MultiMap<S, WebNode> i : indexes) |
11 | index.putAll(i); |
12 | } |
13 | |
14 | ret index; |
15 | } |
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: | 683 / 738 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |