Libraryless. Click here for Pure Java version (689L/5K/18K).
!7 static int f1(int i) { ret i*2; } static int f2(int i) { ret i*2; } static int f3(int i) { ret i*2; } static int f4(int i) { ret i*2; } static int f5(int i) { ret i*3; } static int f6(int i) { ret i*2; } static int f7(int i) { ret i*2; } static int f8(int i) { ret i*2; } static int f9(int i) { ret i*2; } static int f10(int i) { ret i*2; } p { int n = 1000000; int x = 0; //time { for i to n: x += (int) callF_uncached("f5", i); } //print(x); for rep to 100: { x = 0; time { for i to n: x += (int) callF("f5", i); } //time { for i to n: x += (int) callMC_2("f5", i); } x = 0; time { for i to n: x += (int) callMC_3("f5", i); } print(x); } }
Began life as a copy of #1007685
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007830 |
Snippet name: | Optimize callF with string [OK] |
Eternal ID of this version: | #1007830/10 |
Text MD5: | 1d3b869630eed54d0b75064e74a76d50 |
Transpilation MD5: | b812212a7f0078511012fdaf956f07ee |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-11 14:42:12 |
Source code size: | 716 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 481 / 593 |
Version history: | 9 change(s) |
Referenced in: | [show references] |