Glenn Fowler wrote:
> On Tue, 29 Sep 2009 08:11:37 -0700 (PDT) bugzilla-daemon at np.grommit.com 
> wrote:
> > Note that the changes to usr/src/lib/libsum/common/sumlib.c have the same
> > performance benefit than using the hardcoded table in
> > usr/src/lib/libsum/common/sum-crc.c.
> > It seems the usage of |sfsprintf()|+|strmatch()| is _very_ expensive in this
> > codepath... ;-/
> 
> here is a patch for a simple method name prefix match
> 
> --- .../sumlib.c        Fri May  2 11:05:51 2008
> +++ sumlib.c    Tue Sep 29 11:46:55 2009
[snip]

Thanks! ...
... that's much cleaner than my sumlib.c hack... :-)

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Reply via email to