Avoid extra allocation in IDNA (dotnet/coreclr#18551)
authorTarek Mahmoud Sayed <tarekms@microsoft.com>
Wed, 20 Jun 2018 01:50:38 +0000 (18:50 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Jun 2018 01:50:38 +0000 (18:50 -0700)
commitd4f630f0a63769faf96289eaa33c185def9f4220
treec9b069671bc9f45c30f098c99bed7120bc05810d
parent3600e6a13708624261821f25df4f25ec21611a52
Avoid extra allocation in IDNA (dotnet/coreclr#18551)

* Avoid extra allocation in IDNA

* cache the indexd value in StringBuilder

Commit migrated from https://github.com/dotnet/coreclr/commit/5d34cc6642c3f8d406f0c4bdf74b7be26b1aa0df
src/libraries/System.Private.CoreLib/src/System/Globalization/CharUnicodeInfo.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/IdnMapping.cs