Libraryless. Click here for Pure Java version (780L/6K/19K).
1 | !7 |
2 | |
3 | p { |
4 | int n = 10000000; |
5 | O f = func(int i) { i*2 }; |
6 | |
7 | for rep to 10: { |
8 | int x = 0; |
9 | time { for i to n: x += (int) callF_uncached(f, i); } |
10 | print(x); |
11 | |
12 | x = 0; |
13 | time { for i to n: x += (int) callF(f, i); } |
14 | print(x); |
15 | } |
16 | } |
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: | #1007685 |
Snippet name: | Optimize callF [OK] |
Eternal ID of this version: | #1007685/7 |
Text MD5: | 7833f8c9a0286d262a771009ce4961df |
Transpilation MD5: | bf9ef15e61d649be51d12ab0945ab281 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-02 13:53:32 |
Source code size: | 265 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 535 / 586 |
Version history: | 6 change(s) |
Referenced in: | [show references] |