Closed
Description
Description
Updated size of string from 10KB to 20KB according to
Note: Strings are stored as UTF-16 characters in .NET so each char takes two bytes in memory.
but also after running
Console.WriteLine(
System.Text.Encoding.Unicode.GetByteCount(
new String('x', 10 * 1024)));
// Answer: 20480
Page URL
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/performance/memory.md
Document ID
06ca8420-5ca0-24ae-3584-9a4c486d3ebe
Article author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
✅ Done