[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS: cvs.openbsd.org: src
- To: source-changes_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: CVS: cvs.openbsd.org: src
- From: Marc Espie <espie_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
- Date: Wed, 2 Feb 2000 07:00:14 -0700 (MST)
- Reply-to: Marc Espie <espie_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org>
CVSROOT: /cvs
Module name: src
Changes by: espie_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org 2000/02/02 07:00:12
Modified files:
usr.bin/m4 : main.c
Log message:
Optimize common case.
outputstr could be called for one character-long string.
Looking at profiling output, it WAS called for one-character long strings
most of the time, like 95% of calls...
Rework logic slightly to know about that case and output the character
directly.
Worth about 10%.
Reviewed by Paul Janzen.
Visit your host, monkey.org