Libraryless. Click here for Pure Java version (3327L/20K).
1 | scope mmo_parsePattern_cached. |
2 | |
3 | static Map<S, MMOPattern> #cache = synchronizedMRUCache(1000); |
4 | |
5 | static MMOPattern mmo_parsePattern_cached(S s) { |
6 | MMOPattern tok = cache.get(s); |
7 | if (tok == null) cache.put(s, tok = mmo_parsePattern(s)); |
8 | ret tok; |
9 | } |
10 | |
11 | end scope |
Began life as a copy of #1026499
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028065 |
Snippet name: | mmo_parsePattern_cached |
Eternal ID of this version: | #1028065/3 |
Text MD5: | d3ba7acfb9ed5d9a4111096bceae61a9 |
Transpilation MD5: | 68c535c650783005d385541c13292344 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-15 15:17:07 |
Source code size: | 271 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 216 / 324 |
Version history: | 2 change(s) |
Referenced in: | [show references] |