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

11
LINES

< > BotCompany Repo | #1017785 // parse3_cachedInput

JavaX fragment (include)

scope parse3_cachedInput.

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

static L<S> parse3_cachedInput(S s) {
  LS tok = cache.get(s);
  if (tok == null) cache.put(s, tok = parse3(s));
  ret tok;
}

end scope

Author comment

Began life as a copy of #1017784

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017785
Snippet name: parse3_cachedInput
Eternal ID of this version: #1017785/5
Text MD5: 0bd9e1295c9371b554018db5709f91e5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-16 21:10:48
Source code size: 229 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 365 / 411
Version history: 4 change(s)
Referenced in: [show references]