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

11
LINES

< > BotCompany Repo | #1017785 // parse3_cachedInput

JavaX fragment (include)

1  
scope parse3_cachedInput.
2  
3  
static Map<S, LS> #cache = synchronizedMRUCache(1000);
4  
5  
static L<S> parse3_cachedInput(S s) {
6  
  LS tok = cache.get(s);
7  
  if (tok == null) cache.put(s, tok = parse3(s));
8  
  ret tok;
9  
}
10  
11  
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: 439 / 489
Version history: 4 change(s)
Referenced in: [show references]