static SS stdFunctions_cached_map; // name -> snippet ID static Lock stdFunctions_cached_lock = lock(); static SS stdFunctions_cached() { lock stdFunctions_cached_lock; if (stdFunctions_cached_map == null) stdFunctions_cached_map = stdFunctions_uncached(); ret stdFunctions_cached_map; } static synchronized void stdFunctions_clearCache() { stdFunctions_cached_map = null; }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006435 |
Snippet name: | stdFunctions_cached - get map of standard functions (loaded per program run) |
Eternal ID of this version: | #1006435/8 |
Text MD5: | bc4686e25e354165895c8e61f43321d9 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-08 00:29:58 |
Source code size: | 400 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 666 / 705 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1007075 - isJavaXStandardFunction_cached #1010200 - standardFunctionNames - in declaration order #1020404 - stdFunctions_uncached - now uses HashMap (smaller) |