Project

General

Profile

Actions

Bug #17740

closed

Printing longer lists with table formatter is extremely slow

Added by Tomáš Strachota almost 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Hammer core
Target version:
Difficulty:
Triaged:
Team Backlog:
Marek
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

The table formatter prints data via table_print gem into a string, then parses the output, reorders columns and finally prints the new string to stdout. This approach is extremely slow for long lists.

Attached logs show that printing a list of about 3000 records (hammer errata list) took 15m 13s, where the time needed to fetch the data from server was only 25 seconds.

The same command executed with base formatter took only 27 seconds. Other formatters perform similarly.


Files

erratum_list_out_table.txt.tar.gz erratum_list_out_table.txt.tar.gz 1.8 MB Tomáš Strachota, 12/19/2016 10:13 AM
erratum_list_out_base.txt.tar.gz erratum_list_out_base.txt.tar.gz 1.81 MB Tomáš Strachota, 12/19/2016 10:21 AM

Related issues 1 (0 open1 closed)

Related to Hammer CLI - Feature #17819: Output adapters should support printing lists page by pageClosedOleh FedorenkoActions
Actions

Also available in: Atom PDF