summaryrefslogtreecommitdiff
path: root/src/libbio/bputrune.c
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2013-08-30 15:46:12 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-08-30 15:46:12 +0400
commit5c03c230954d1491c25b14690d2b6bb96452cfa1 (patch)
tree4d916a84cc854b172ce2088cd8968c13316d8568 /src/libbio/bputrune.c
parent564f6b8ad1baba0e954929e1f3ac0bc0735982c3 (diff)
downloadgo-5c03c230954d1491c25b14690d2b6bb96452cfa1.tar.gz
libbio, all cmd: consistently use BGETC/BPUTC instead of Bgetc/Bputc
Also introduce BGET2/4, BPUT2/4 as they are widely used. Slightly improve BGETC/BPUTC implementation. This gives ~5% CPU time improvement on go install -a -p1 std. Before: real user sys 0m23.561s 0m16.625s 0m5.848s 0m23.766s 0m16.624s 0m5.846s 0m23.742s 0m16.621s 0m5.868s after: 0m22.999s 0m15.841s 0m5.889s 0m22.845s 0m15.808s 0m5.850s 0m22.889s 0m15.832s 0m5.848s R=golang-dev, r CC=golang-dev https://codereview.appspot.com/12745047
Diffstat (limited to 'src/libbio/bputrune.c')
-rw-r--r--src/libbio/bputrune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbio/bputrune.c b/src/libbio/bputrune.c
index 34f4fffdd..7fe0e6569 100644
--- a/src/libbio/bputrune.c
+++ b/src/libbio/bputrune.c
@@ -37,7 +37,7 @@ Bputrune(Biobuf *bp, long c)
rune = (Rune)c;
if(rune < Runeself) {
- Bputc(bp, (int)rune);
+ BPUTC(bp, (int)rune);
return 1;
}
n = runetochar(str, &rune);