Uses 1059K of libraries. Click here for Pure Java version (7494L/39K).
!7 concept A { S x; } concept B { S y; } static int i = 100000, j = 100005; cmodule2 > DynTestModule { void test { repeat i { new A; } repeat j { new B; } // speed up counting print("indexing"); indexConceptField(A, 'x); print("indexing"); indexConceptFieldCI(B, 'y); time "check" { repeat 100 { print("counting"); assertEqualsVerbose(i, countConcepts(A)); } repeat 100 { assertEqualsVerbose(j, countConcepts(B)); } } } }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024022 |
| Snippet name: | Test countConcepts optimization (OK) |
| Eternal ID of this version: | #1024022/17 |
| Text MD5: | 4503be7f035700fab09cf33563d72ef8 |
| Transpilation MD5: | c2c74453eb4e20389c3ebb0e1f11e0c6 |
| Author: | stefan |
| Category: | javax / concepts |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-05-03 22:08:42 |
| Source code size: | 501 bytes / 22 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 756 / 1113 |
| Version history: | 16 change(s) |
| Referenced in: | [show references] |