Login
From:
Performance is a Feature!
(Uncensored)
subscribe
Compact strings in the CLR
http://www.mattwarren.org/2016/09/19/Compact-strings-in-the-CLR/
links
backlinks
Tagged with:
internals
clr
In the CLR strings are stored as a sequence of UTF-16 code units, i.e. an array of char items. So if we have the string ‘testing’, in memory it looks like this:
Roast topics
Find topics
Find it!