Ryujinx icon indicating copy to clipboard operation
Ryujinx copied to clipboard

Optimize string memory usage. Use Spans and StringBuilders where possible

Open SukharevAndrey opened this issue 3 years ago • 1 comments

Just a bunch of low-hanging fruits. This PR replaces substring usages with span slices where possible so it will not allocate in this places. It also introduces StringBuilder in a shader code generator which for some reason uses dumb string concatenations instead. But I think maybe it needs to be benchmarked anyway.

SukharevAndrey avatar Nov 28 '22 21:11 SukharevAndrey