String literal storage optimization
Open
area:cil-interop
good-first-issue
hacktoberfest
kind:feature
status:help-wanted
- Dominant language
- C#
- Stars
- 451
- Forks
- 49
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 6
Description
When storing two literals, `"bar"` and `"foobar"`, the compiler may optimize them to save space in the binary: only store `"foobar"` and point `"bar"` pointer to the middle of the literal.
```
f o o b a r \0
↑ ↑
| "bar" points here
"foobar" points here
```
Contributor guide
Assessment
This issue has not been assessed yet.