-
Notifications
You must be signed in to change notification settings - Fork 51
make default table output a bit more compact #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shua
wants to merge
3
commits into
rust-lang:master
Choose a base branch
from
shua:compact
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bjorn3
reviewed
Jun 17, 2025
bjorn3
reviewed
Jun 17, 2025
This doesn't seem to have any effect for me locally. |
bjorn3
reviewed
Jun 18, 2025
bjorn3
reviewed
Jun 18, 2025
A quick heads up that this is getting very close to the format of tables in Markdown, where it would look like this (replace + with | and remove ... for padding): | Item | Self time | % of total time | Time | Item count | Incremental result hashing time |
|-------------------------------|-----------|-----------------|----------|------------|---------------------------------|
| LLVM_passes | 714.79ms | 13.408 | 714.79ms | 1 | 0.00ns |
| run_linker | 706.56ms | 13.253 | 706.56ms | 1 | 0.00ns |
| LLVM_module_codegen_emit_obj | 690.58ms | 12.954 | 690.58ms | 173 | 0.00ns |
| codegen_module | 401.81ms | 7.537 | 748.49ms | 172 | 0.00ns |
| incr_comp_encode_dep_graph | 302.17ms | 5.668 | 302.17ms | 223438 | 0.00ns |
| implementations_of_trait | 280.60ms | 5.263 | 395.25ms | 44604 | 112.82ms |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I found the default formatting for
summarize summarize <file>
to be visually noisy and difficult to read because of the separators between each line:This change removes the separating lines
+-----+---+
between rows. This introduces a new problem where it is hard to read a line as there's often a lot of whitespace between the end of the item label and the beginning of the next column. I added some...
to pad out the line to make it easier to scan.A similar change has been made for the table output of the
summarize diff ...
command.I think the final result is able to present more data in a single screen, while also not sacrificing ease of scanning horizontally.