mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
- Use a lookup table for the replacement characters in the ascii range (which is all of the characters that gson escapes except for exactly 2). - Stream the escapes out ourselves instead of going through gson.toJson(val.toString()) which goes through a lot of heavy gson machinery and makes several copies of the string. We exactly match the choices that gson made for escapes here to make this an implementation detail change with no observable difference. PiperOrigin-RevId: 928654085 |
||
|---|---|---|
| .. | ||
| src | ||
| BUILD.bazel | ||
| pom_template.xml | ||