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

10
LINES

< > BotCompany Repo | #1011796 // ai_gc_clear

JavaX fragment (include)

1  
static void ai_gc_clear() {
2  
  int n = 0;
3  
  for ping (WebRelation rel : indexedRelations("has GC distance")) {
4  
    if (ai_isTripleWeb(rel.web)) {
5  
      ai_invalidateWeb(rel.web);
6  
      ++n;
7  
    }
8  
  }
9  
  if (n != 0) print("Cleared " + n(n, "GC entry"));
10  
}

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: #1011796
Snippet name: ai_gc_clear
Eternal ID of this version: #1011796/6
Text MD5: 1666dca2aa34e78fa984cf7a423cbf14
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-05 07:03:59
Source code size: 261 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 424 / 447
Version history: 5 change(s)
Referenced in: [show references]