Libraryless. Click here for Pure Java version (5672L/36K/130K).
!7 sclass A { int a; [stdEq] } sclass B extends A { int b; [stdEq] } static int n = 500000; p { final new L l; for (int i = 0; i < n; i++) { l.add(nu(A, a := 1)); l.add(nu(B, a := 2, b := 3)); } print("Objects: " + l(l)); structure_showTiming = true; fS struct = struct(l); L unstructd = cast unstructure(struct); // pre-run assertEquals(l(l), l(unstructd)); // sanity check poorMansProfileToConsole(r { L unstructd = cast unstructure(struct); assertEquals(l(l), l(unstructd)); // sanity check }); }
Began life as a copy of #1009440
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018547 |
Snippet name: | Profile unstructure with MANY custom objects containing primitive values |
Eternal ID of this version: | #1018547/4 |
Text MD5: | 2a971ff90a21c659112c6b300386c369 |
Transpilation MD5: | 4fd7b1664920978dea799c54d6440a04 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-05 13:23:20 |
Source code size: | 594 bytes / 35 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 358 / 435 |
Version history: | 3 change(s) |
Referenced in: | -