Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1011347 // ai_indexWebs

JavaX fragment (include)

static MultiMap<S, WebNode> ai_indexWebs(Collection<Web> webs) {
  if (hasMultiCore() && l(webs) >= 2000) ret ai_indexWebs_parallel2(webs);
  ret ai_indexWebs_serial(webs);
}
    
static MultiMap<S, WebNode> ai_indexWebs_serial(Collection<Web> webs) {
  MultiMap<S, WebNode> index = ai_emptyWebIndex();
  for (Web web : unnull(webs))
    ai_addWebToIndex(index, web);
  ret index;
}

Author comment

Began life as a copy of #1010532

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: #1011347
Snippet name: ai_indexWebs
Eternal ID of this version: #1011347/9
Text MD5: 96366a9aa4a4d48f159cf0cbdc80b675
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-28 14:55:42
Source code size: 392 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 424 / 466
Version history: 8 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011366 - ai_addWebToIndex
#1011919 - ai_indexWebs_parallel - note: indexes in different order - this makes no sense, should make multiple indexes, then merge
#1012336 - ai_emptyWebIndex