Subject: Re: field widths in ps(1).
To: David Brownlee <firstname.lastname@example.org>
From: Simon Burge <email@example.com>
Date: 06/04/2000 00:42:51
David Brownlee wrote:
> As a random thought, you could have the first pass print
> everything onto a linked list of strings in the '-q' format (or
> maybe separated with '\n' instead of ' '), making a note of the
> max lengths, and skipping the last entry (usually the command),
> then a second pass that takes each line and formats for output.
> From some samples here the memory overhead would average ~50
> characters per line (pointer + 45 chars).
My first thought is that the overhead of managing lists of strings may
be higher than doing things more efficiently. I'm playing with a few
ideas at the moment - if I get no luck there I'll investigate your idea