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)

static void ai_gc_clear() {
  int n = 0;
  for ping (WebRelation rel : indexedRelations("has GC distance")) {
    if (ai_isTripleWeb(rel.web)) {
      ai_invalidateWeb(rel.web);
      ++n;
    }
  }
  if (n != 0) print("Cleared " + n(n, "GC entry"));
}

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: 425 / 447
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011799 - ai_gc_scan - TODO: order by smallest distance; then maybe we never overwrite any values?