Commit e00e063
J2S 3.2.2.03 all stream tests working
performance could be better.
Test_J8_Speed map with 40,000 4-element ArrayLists flattened to one list
with 160,000 elements using:
map.values().stream().flatMap(c ->
c.stream()).collect(Collectors.toList())
stream for-loop
Chrome 182 ms 174 ms
FireFox 728 ms 396 ms
Edge 366 ms 186 ms
Java 14 ms 14 ms
So there is no real advantage without parallelism, I think. Still, it is
important to cover this.
- arity worked out
- static vs. nonstatic calling in functional interfaces worked out1 parent eecc81a commit e00e063
File tree
17 files changed
+1668
-635
lines changed- sources
- net.sf.j2s.core
- dist
- dropins
- ver/3.2.2
- src/net/sf/j2s/core
- net.sf.j2s.java.core
- dist
- srcjs
- js
- src/test
17 files changed
+1668
-635
lines changedBinary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 246 additions & 176 deletions
Large diffs are not rendered by default.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments