Commit 35e2caa
authored
String map performance improvement (#9470)
* Simplify and improve perf of String.length
* Improve performance of String.map
* Revert "Simplify and improve perf of String.length"
* Resolves #9470 (comment)
* Lingering space
* Change `String` to use `new` to clarify use of ctor
* Add some better tests for String.map, add side-effect test
* Add tests to ensure the mapping function is called a deterministically amount of times
* Fix typo
* Remove "foo" from String.map tests1 parent 7b29d44 commit 35e2caa
File tree
2 files changed
+35
-7
lines changed- src/fsharp/FSharp.Core
- tests/FSharp.Core.UnitTests/FSharp.Core/Microsoft.FSharp.Collections
2 files changed
+35
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
76 | 76 | | |
77 | | - | |
78 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
79 | 103 | | |
80 | 104 | | |
81 | 105 | | |
| |||
0 commit comments