Commit f98b7a6c authored by Josh Karlin's avatar Josh Karlin Committed by Commit Bot

[Presubmit Speed] Refactor XmlStyle.PrettyPrintNode

It's a big method that can easily be broken up into smaller
methods. This will make it easier to review downstream changes.

Also, rather than create a TextWrapper every time it's needed, I
instantiated one for the class. That winds up saving about .3 seconds
when running histograms pretty_print.py.

Bug: 1538783
Change-Id: I4bb697c74472e8729060828e29a2f67766fa4f43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1543248
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646423}
parent 1ea3109d
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment