Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.4-alpha
-
None
-
None
-
Reviewed
Description
The generic toString implementation that is used in most of the PBImpls
getProto().toString().replaceAll("\\n", ", ").replaceAll("\\s+", " ");
is rather inefficient - replacing "\n" and "\s" to generate a one line string. Instead, we can use
TextFormat.shortDebugString(getProto());
.
If we can get this into 2.1.0 - great, otherwise the next release.
Attachments
Attachments
Issue Links
- is related to
-
YARN-1066 Improve toString implementation for PBImpls for AHS
- Resolved