Adrian Chadd <adr...@freebsd.org> writes:
> Dag-Erling Smørgrav <d...@des.no> writes:
> > I added code to cmd_register() in ifconfig.c to warn about duplicate
> > commands.  [...]
> Would you mind committing that code, so we at least get warned about
> it when we try?

It's quadratic and runs every time a set of commands is added, which
means the total running time is closer to n! than n^2.  I can add it
with an #ifdef, but that's not very useful.  It would be better to
rewrite ifconfig to use a hash table instead of a linked list.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to