Cache Uri.IdnHost and Uri.PathAndQuery (#36460)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Wed, 20 May 2020 18:47:28 +0000 (20:47 +0200)
committerGitHub <noreply@github.com>
Wed, 20 May 2020 18:47:28 +0000 (14:47 -0400)
commit54db4a39f86f07ca2a7d91c4620268d87ff324b2
treed784a11102424f2da7b27dddb71da4c9ab15c291
parent66e6fda900582ff278fc9da43d6e7a7079bfa499
Cache Uri.IdnHost and Uri.PathAndQuery (#36460)

* Cache Uri.IdnHost and Uri.PathAndQuery

* Continue caching DnsSafeHost

* Move PathAndQuery cache from MoreInfo to UriInfo

* Move DnsSafeHost and IdnHost logic to IdnHost getter

* Add more Host tests
src/libraries/System.Private.Uri/src/System/Uri.cs
src/libraries/System.Private.Uri/tests/FunctionalTests/IdnDnsSafeHostTest.cs
src/libraries/System.Private.Uri/tests/FunctionalTests/UriTests.cs