static L<TripleWeb> ai_fillTripleIndex_useThese; static O ai_fillTripleIndex_useTripleIndex; static void ai_fillTripleIndex() { if (ai_fillTripleIndex_useTripleIndex != null) { print("Copying triple index."); ai_reuseTripleIndex(ai_fillTripleIndex_useTripleIndex); ai_fillTripleIndex_useTripleIndex = null; ai_fillTripleIndex_useThese = null; ret; } print("Getting triples."); time2 { L<TripleWeb> triples = ai_fillTripleIndex_useThese != null ? ai_fillTripleIndex_useThese : localSoftwareMadeTriples(); ai_fillTripleIndex_useThese = null; } long time = lastTiming(); long us = ratio(time*1000, l(triples)); //print("Got triples in "T + time + " ms. Making triple index of " + nTriples(triples) + "."); print("Got " + nTriples(triples) + " in " + us + " "+ unicode_micro() + "s per triple. Making triple index."); time "Triple index made." { ai_replaceTripleIndexWithTriples(triples); //ai_tripleIndexToInvalidatedWebs(); ai_deleteInvalidTriples(); } }
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: | #1012338 |
| Snippet name: | ai_fillTripleIndex [LIVE] |
| Eternal ID of this version: | #1012338/14 |
| Text MD5: | d098affcf4674b41af8c77feaf67a0cc |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-25 17:38:28 |
| Source code size: | 1058 bytes / 29 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 648 / 677 |
| Version history: | 13 change(s) |
| Referenced in: | [show references] |