r/Protos • u/guillermoamolina • 2h ago
Removing unnecessary text conversions cuts processing time by around 25% in Protos
Sometimes the performance bottleneck is not the algorithm itself, but the cost of moving data between representations.
Recent changes to Protos eliminate intermediate text conversions, unnecessary allocations and redundant byte copying in Unicode encoding and decoding.
Local Native measurements show approximately 25% lower processing time in both direct and parallel catalog workloads, without changing the JSON parser or relaxing Unicode correctness.
All 1,600 conformance cases pass, and the changes are now integrated into main.
How much of modern runtime performance is lost to conversions between internal representations?
Website: https://protoslang.com
Source code: https://github.com/guillermomolina/protos