bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simplifying command line parsing with Genparse


From: Michael Geng
Subject: Re: Simplifying command line parsing with Genparse
Date: Fri, 8 Jun 2007 08:07:52 +0200
User-agent: Mutt/1.5.9i

On Thu, Jun 07, 2007 at 03:49:53PM -0600, Bob Proulx wrote:
> Michael Geng wrote:
> > I would expect Genparse to generate faster code than argp because it does 
> > part of the work at compile time while argp does everything at run time
> > since it's a library function.
> 
> Is the performance of parsing program arguments really a concern?  I
> would think that the difference would not be significant.  I would
> value clean code over minor performance improvements.  For coreutils I
> would value object code size over performance.
> 
> Bob

I could imagine that especially for the Coreutils speed might be more a 
concern than for other tools because some of the Coreutils tools are
called very often. And I would also expect that with Genparse you also get 
smaller code than with argp again because it does part of the work while
it generates the parser code while argp is a library function and so it 
does everything at run time.

Michael




reply via email to

[Prev in Thread] Current Thread [Next in Thread]