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

11
LINES

< > BotCompany Repo | #1021304 // parse3_noEllipsis_cachedInput

JavaX fragment (include)

scope parse3_noEllipsis_cachedInput.

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

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

end scope

Author comment

Began life as a copy of #1017785

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: #1021304
Snippet name: parse3_noEllipsis_cachedInput
Eternal ID of this version: #1021304/1
Text MD5: 9036e09abd9e92d9e87d76143ff63dd7
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-08 13:34:46
Source code size: 274 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 271 / 302
Referenced in: [show references]