Skip to content

Commit

Permalink
Remove IL bloat from this PR as per dotnet#5212
Browse files Browse the repository at this point in the history
  • Loading branch information
manofstick committed Aug 12, 2018
1 parent 41ddb08 commit d845e48
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/fsharp/FSharp.Core/prim-types.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1719,12 +1719,26 @@ namespace Microsoft.FSharp.Core
| null, _ -> false
| _, null -> false
| (:? (obj[]) as arr1), (:? (obj[]) as arr2) -> GenericEqualityObjArray er iec arr1 arr2
| _ ->
match xobj,yobj with
| (:? (byte[]) as arr1), (:? (byte[]) as arr2) -> GenericEqualityByteArray arr1 arr2
| _ ->
match xobj,yobj with
| (:? (int32[]) as arr1), (:? (int32[]) as arr2) -> GenericEqualityInt32Array arr1 arr2
| _ ->
match xobj,yobj with
| (:? (int64[]) as arr1), (:? (int64[]) as arr2) -> GenericEqualityInt64Array arr1 arr2
| _ ->
match xobj,yobj with
| (:? (char[]) as arr1), (:? (char[]) as arr2) -> GenericEqualityCharArray arr1 arr2
| _ ->
match xobj,yobj with
| (:? (float32[]) as arr1), (:? (float32[]) as arr2) -> GenericEqualitySingleArray er arr1 arr2
| _ ->
match xobj,yobj with
| (:? (float[]) as arr1), (:? (float[]) as arr2) -> GenericEqualityDoubleArray er arr1 arr2
| _ ->
match xobj,yobj with
| (:? System.Array as arr1), (:? System.Array as arr2) -> GenericEqualityArbArray er iec arr1 arr2
| _ -> raise (Exception "invalid logic - expected array")

Expand Down

0 comments on commit d845e48

Please sign in to comment.