Libraryless. Click here for Pure Java version (689L/5K/18K).
1 | !7 |
2 | |
3 | static int f1(int i) { ret i*2; } |
4 | static int f2(int i) { ret i*2; } |
5 | static int f3(int i) { ret i*2; } |
6 | static int f4(int i) { ret i*2; } |
7 | static int f5(int i) { ret i*3; } |
8 | static int f6(int i) { ret i*2; } |
9 | static int f7(int i) { ret i*2; } |
10 | static int f8(int i) { ret i*2; } |
11 | static int f9(int i) { ret i*2; } |
12 | static int f10(int i) { ret i*2; } |
13 | |
14 | p { |
15 | int n = 1000000; |
16 | |
17 | int x = 0; |
18 | //time { for i to n: x += (int) callF_uncached("f5", i); } |
19 | //print(x); |
20 | |
21 | for rep to 100: { |
22 | x = 0; |
23 | time { for i to n: x += (int) callF("f5", i); } |
24 | //time { for i to n: x += (int) callMC_2("f5", i); } |
25 | x = 0; |
26 | time { for i to n: x += (int) callMC_3("f5", i); } |
27 | print(x); |
28 | } |
29 | } |
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: | 482 / 594 |
Version history: | 9 change(s) |
Referenced in: | [show references] |