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

12
LINES

< > BotCompany Repo | #1021948 // javaTokForJFind_cached

JavaX fragment (include)

scope javaTokForJFind_cached.

static Map<S, LS> #cache = synchronizedMRUCache(1000);

static LS javaTokForJFind_cached(S s) {
  LS tok = cache.get(s);
  if (tok == null)
    cache.put(s, tok = jfind_preprocess(javaTok(s)));
  ret tok;
}

end scope

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021948
Snippet name: javaTokForJFind_cached
Eternal ID of this version: #1021948/2
Text MD5: 34be839c878871d8d864d6d02f677fac
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-04 00:54:44
Source code size: 259 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 214 / 246
Version history: 1 change(s)
Referenced in: [show references]