--- Begin Message ---
Subject: |
[PATCH 1/3] Improve appearance of tabular output. |
Date: |
Tue, 9 Jan 2018 14:34:46 -0800 |
I noticed when listing installed or available packages that the output
is often pretty jumbled up because columns in each row have an
inconsistent width.
This series of patches adds a new procedure for printing tabular data
(pretty-print-table) and modifies the code for --list-installed,
--list-available, and --list-generations to utilize it.
-Steve
0001-utils-Add-a-procedure-for-pretty-printing-tabular-da.patch
Description: Text Data
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#30053: [PATCH 1/3] Improve appearance of tabular output. |
Date: |
Thu, 15 Jul 2021 16:15:12 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi again,
Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:
> Hi,
>
> Here's an improved version of the first patch. It now uses a hard limit
> on the maximum width of a column, which is a poor man's way of getting
> rid of the outliers that cause the table to be too wide in some
> situations (such as in 'guix package -A').
>
> Otherwise the performance remain unchanged (from ~2 to ~7 seconds with
> 'guix package -A' on a fast machine).
>
>
>
> Thanks!
>
> Maxim
I've improved it some more and pushed as 01d7e8c278. The performance is
about 5 s on a fast machines to format the 18000 something packages of
the collection, compared to 2 s before (guix package -A), which I think
is OK (but it'd be nice to see Guile opitimize for faster (ice-9
format)!).
Closing.
Thanks to all involved!
Maxim
--- End Message ---