Skip to content

Commit 3b3f825

Browse files
authored
Merge pull request #1756 from fsprojects/repo-assist/improve-htmlparser-dead-code-2026-04-22-e8df0210e46c5935
[Repo Assist] improve: HtmlParser remove dead code and redundant ToLowerInvariant in EmitTag
2 parents 5fd7890 + d612ede commit 3b3f825

11 files changed

Lines changed: 52 additions & 44 deletions

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release Notes
22

3+
## 8.1.11 - Apr 22 2026
4+
5+
- Code: `HtmlParser` `EmitTag` removes dead code in the `else` branch (the expression `x.HasFormattedParent || x.IsFormattedTag` was always equivalent to `x.HasFormattedParent` since `x.IsFormattedTag` is always `false` in that branch). Uses `name` directly to avoid re-computing `CurrentTagName()` for formatted/script tag checks. Also removes redundant `.ToLowerInvariant()` calls in `IsFormattedTag` and `IsScriptTag` since tag names are already lowercased at read time.
6+
37
## 8.1.10 - Apr 20 2026
48

59
- Performance: `HtmlCharRefs` entity lookup now uses a `Dictionary<string, string>` instead of an F# `Map`, giving O(1) lookups instead of O(log n) for ~2230 HTML named-entity entries. Also avoids a repeated `char[]` allocation in the `TrimEnd` call inside the active pattern.

src/AssemblyInfo.Csv.Core.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.Csv.Core")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.Csv.Core"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.DesignTime.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.DesignTime")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.DesignTime"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.Html.Core.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.Html.Core")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.Html.Core"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.Http.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.Http")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.Http"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.Json.Core.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.Json.Core")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.Json.Core"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.Runtime.Utilities.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.Runtime.Utilities")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.Runtime.Utilities"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.WorldBank.Core.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.WorldBank.Core")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.WorldBank.Core"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.Xml.Core.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data.Xml.Core")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data.Xml.Core"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

src/AssemblyInfo.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ open System.Reflection
55
[<assembly: AssemblyTitleAttribute("FSharp.Data")>]
66
[<assembly: AssemblyProductAttribute("FSharp.Data")>]
77
[<assembly: AssemblyDescriptionAttribute("Library of F# type providers and data access tools")>]
8-
[<assembly: AssemblyVersionAttribute("8.1.10.0")>]
9-
[<assembly: AssemblyFileVersionAttribute("8.1.10.0")>]
8+
[<assembly: AssemblyVersionAttribute("8.1.11.0")>]
9+
[<assembly: AssemblyFileVersionAttribute("8.1.11.0")>]
1010
do ()
1111

1212
module internal AssemblyVersionInformation =
1313
let [<Literal>] AssemblyTitle = "FSharp.Data"
1414
let [<Literal>] AssemblyProduct = "FSharp.Data"
1515
let [<Literal>] AssemblyDescription = "Library of F# type providers and data access tools"
16-
let [<Literal>] AssemblyVersion = "8.1.10.0"
17-
let [<Literal>] AssemblyFileVersion = "8.1.10.0"
16+
let [<Literal>] AssemblyVersion = "8.1.11.0"
17+
let [<Literal>] AssemblyFileVersion = "8.1.11.0"

0 commit comments

Comments
 (0)