diff options
author | Jon Skeet <skeet@pobox.com> | 2015-06-11 14:19:30 +0100 |
---|---|---|
committer | Jon Skeet <skeet@pobox.com> | 2015-06-11 14:19:30 +0100 |
commit | 35e4dbd51829216fd1ad85a95c01042346b63c6b (patch) | |
tree | 0841c7e6f967bc39c0fe933aa9bc63c740f138aa /csharp/build/nuspec.xsd | |
parent | 954e720837be515254360cf9fdf3d9681c1bd91c (diff) | |
download | protobuf-35e4dbd51829216fd1ad85a95c01042346b63c6b.tar.gz protobuf-35e4dbd51829216fd1ad85a95c01042346b63c6b.tar.bz2 protobuf-35e4dbd51829216fd1ad85a95c01042346b63c6b.zip |
Improve string encoding times.
Cache a reference to Encoding.UTF8 - the property access is (rather surprisingly) significant.
Additionally, when we detect that the string is all ASCII (due to the computed length in bytes being the length in characters), we can perform the encoding very efficiently ourselves.
Diffstat (limited to 'csharp/build/nuspec.xsd')
0 files changed, 0 insertions, 0 deletions