• Jon Skeet's avatar
    Improve string encoding times. · 35e4dbd5
    Jon Skeet authored
    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.
    35e4dbd5
Name
Last commit
Last update
..
build Loading commit data...
keys Loading commit data...
protos/extest Loading commit data...
src Loading commit data...
testdata Loading commit data...
.gitignore Loading commit data...
CHANGES.txt Loading commit data...
README.md Loading commit data...
buildall.sh Loading commit data...
generate_protos.sh Loading commit data...