summaryrefslogtreecommitdiff
path: root/src/System.Private.CoreLib/Resources/Strings.resx
diff options
context:
space:
mode:
authorStephen Toub <stoub@microsoft.com>2019-01-17 16:00:12 -0500
committerGitHub <noreply@github.com>2019-01-17 16:00:12 -0500
commitc6b1b60f5f7cbcedab5d25e2ea3ac669885dc5fd (patch)
tree7fe93b0df7cdd36b7276496045d700db39d62c60 /src/System.Private.CoreLib/Resources/Strings.resx
parent5849f647616695556aff9978252084d83959e2b1 (diff)
downloadcoreclr-c6b1b60f5f7cbcedab5d25e2ea3ac669885dc5fd.tar.gz
coreclr-c6b1b60f5f7cbcedab5d25e2ea3ac669885dc5fd.tar.bz2
coreclr-c6b1b60f5f7cbcedab5d25e2ea3ac669885dc5fd.zip
Avoid allocations in Utf8Formatter.TryFormat(float/double, ...) (#22011)
* Avoid allocations in Utf8Formatter.TryFormat(float/double, ...) Currently every call to Utf8Formatter.TryFormat for a float or a double allocates two strings, one for the format string and one for the resulting number. This avoids those in the common case where we can use float/double.TryFormat and format directly into a stack buffer. Also removes some unsafe code; the performance of StandardFormat.ToString isn't currently worth the extra nanoseconds gained by using unsafe code. * Delete assert There's a test that uses unsafe code to cause this to fail and validate that no exception is thrown.
Diffstat (limited to 'src/System.Private.CoreLib/Resources/Strings.resx')
0 files changed, 0 insertions, 0 deletions