Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Avoid substring allocations in WebUtility.HtmlDecode (#29402)
Browse files Browse the repository at this point in the history
* Avoid substring allocations in WebUtility.HtmlDecode

* Update changes to HtmlDecode based on feedback

- Use regular Dictionary instead of LowLevelDictionary
- Use AsSpan overload instead of AsSpan() and Slice
- Avoid shift by variable amount
- Use helper method to generate keys to make the code easier to maintain

* Assert that entity length is <= 8 in ToUInt64Key

- Add assert to ToUInt64Key
- Replace default with 0
  • Loading branch information
juliushardt authored and stephentoub committed May 1, 2018
1 parent 5da1070 commit 1681f77
Showing 1 changed file with 290 additions and 262 deletions.
Loading

0 comments on commit 1681f77

Please sign in to comment.