utils: Do not request block buffering in pretty-print-table.

Re-testing 'guix package -A' using the default line buffering set in (guix
ui), there doesn't seem to be a performance gain to use block buffering, so
remove this extraneous side effect.

* guix/utils.scm (pretty-print-table): Do not set buffering mode to block.

Reported-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Maxim Cournoyer 2021-07-21 17:30:20 -04:00
parent 1f07d4436c
commit 4f51a4ac27
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -963,7 +963,6 @@ (define* (pretty-print-table rows #:key (max-column-width 20))
(map (cut min <> max-column-width)
column-widths)))
(fmt (string-append (string-join column-formats "\t") "\t~a")))
(setvbuf (current-output-port) 'block) ;for better performance
(for-each (cut format #t "~?~%" fmt <>) rows)))
;;; Local Variables: