ForNeVeR / ForNeVeR/Cesium

String literal storage optimization

Open
#58 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.