1 | static L<TripleWeb> ai_fillTripleIndex_useThese; |
2 | static O ai_fillTripleIndex_useTripleIndex; |
3 | |
4 | static void ai_fillTripleIndex() { |
5 | if (ai_fillTripleIndex_useTripleIndex != null) { |
6 | print("Copying triple index."); |
7 | ai_reuseTripleIndex(ai_fillTripleIndex_useTripleIndex); |
8 | ai_fillTripleIndex_useTripleIndex = null; |
9 | ai_fillTripleIndex_useThese = null; |
10 | ret; |
11 | } |
12 | |
13 | print("Getting triples."); |
14 | time2 { |
15 | L<TripleWeb> triples = ai_fillTripleIndex_useThese != null |
16 | ? ai_fillTripleIndex_useThese |
17 | : localSoftwareMadeTriples(); |
18 | ai_fillTripleIndex_useThese = null; |
19 | } |
20 | long time = lastTiming(); |
21 | long us = ratio(time*1000, l(triples)); |
22 | //print("Got triples in "T + time + " ms. Making triple index of " + nTriples(triples) + "."); |
23 | print("Got " + nTriples(triples) + " in " + us + " "+ unicode_micro() + "s per triple. Making triple index."); |
24 | time "Triple index made." { |
25 | ai_replaceTripleIndexWithTriples(triples); |
26 | //ai_tripleIndexToInvalidatedWebs(); |
27 | ai_deleteInvalidTriples(); |
28 | } |
29 | } |
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: | 429 / 457 |
Version history: | 13 change(s) |
Referenced in: | [show references] |