Commit 8e276dd
Improve performance of String.concat for seq of type array or list (#9483)
* Move `String.length` to the top of its module so that the `length` function is in scope
* Improve performance of String.concat for arrays and lists
* Make concatArray local to String.concat
* Testing String.concat, make sure the new three paths are covered
* Remove "foo", "bax", "bar" in tests, making them more readable
Co-authored-by: Phillip Carter <pcarter@fastmail.com>1 parent c435a71 commit 8e276dd
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
26 | 45 | | |
27 | 46 | | |
28 | 47 | | |
| |||
0 commit comments