File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 6.0.0-alpha-010] - 2023-04-03
4
+
5
+ ### Fixed
6
+ * Fix a performance regression. [ #2820 ] ( https://github.com/fsprojects/fantomas/pull/2820 )
7
+
3
8
## [ 6.0.0-alpha-009] - 2023-03-31
4
9
5
10
### Fixed
Original file line number Diff line number Diff line change @@ -188,14 +188,12 @@ let splitWhenHash (defines: DefineCombination) (newline: string) (source: string
188
188
let mergeMultipleFormatResults config ( results : ( DefineCombination * FormatResult ) list ) : FormatResult =
189
189
let allInFragments : FormatResultForDefines list =
190
190
results
191
- .AsParallel()
192
- .Select( fun ( dc , result ) ->
193
- let fragments = splitWhenHash dc config.EndOfLine.NewLineString result.Code
194
-
195
- { Result = result
196
- Defines = dc
197
- Fragments = fragments })
198
- |> Seq.toList
191
+ |> List.map ( fun ( dc , result ) ->
192
+ let fragments = splitWhenHash dc config.EndOfLine.NewLineString result.Code
193
+
194
+ { Result = result
195
+ Defines = dc
196
+ Fragments = fragments })
199
197
200
198
let allHaveSameFragmentCount =
201
199
let allWithCount = List.map ( fun { Fragments = f } -> f.Length) allInFragments
You can’t perform that action at this time.
0 commit comments