Cysharp/ZString
Zero Allocation StringBuilder for .NET and Unity. observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2403
- days_rel: n/a
- days_push: 29
- n_releases_24m: 0
Adoption not part of the score
2797 stars · 191 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ZString is a zero-allocation StringBuilder implementation for .NET Core and Unity that avoids allocations from string concatenation, boxing, and intermediate ToString calls. It supports building Utf16 and Utf8 output directly and integrates with Unity's TextMeshPro for fully allocation-free text updates.
Use cases
- reduce garbage collection pressure from string concatenation in C#
- format strings without boxing in hot paths
- build UTF-8 strings without intermediate allocations
- update Unity TextMeshPro text without allocating strings
- replace string.Format and string.Concat with allocation-free alternatives
When to choose
- your .NET or Unity application is GC-bound due to frequent string building
- you need allocation-free text updates in Unity UI
- you want to avoid boxing when formatting struct values
When to avoid
- string building is not on a performance-critical path
- you need the full System.Text.StringBuilder API surface
- your project does not target .NET or Unity
Facets
library · maturity stable
serialization developer-tools developer-tools performance cross-platform game-engine dotnet zero-allocation stringbuilder string-formatting utf8 unity textmeshpro dotnet game-development
1 source
- readme: https://github.com/Cysharp/ZString · fetched 2026-08-28 · 7325b4e66bec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Cysharp/ZString | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem