From owner-cvs-all Wed Sep 18 5:17:30 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D1D537B401; Wed, 18 Sep 2002 05:17:29 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D87743E6E; Wed, 18 Sep 2002 05:17:29 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8ICHTCo051906; Wed, 18 Sep 2002 05:17:29 -0700 (PDT) (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8ICHTBB051905; Wed, 18 Sep 2002 05:17:29 -0700 (PDT) Message-Id: <200209181217.g8ICHTBB051905@freefall.freebsd.org> From: "Tim J. Robbins" Date: Wed, 18 Sep 2002 05:17:28 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio fgetwc.c fputwc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tjr 2002/09/18 05:17:28 PDT Modified files: lib/libc/stdio fgetwc.c fputwc.c Log: Optimise the common case where no special encoding is in use (LC_CTYPE is "C" or "POSIX", other European locales). Use __sgetc() and __sputc() where possible to avoid a wasteful lock and unlock for each byte and to avoid function call overhead. Revision Changes Path 1.4 +25 -3 src/lib/libc/stdio/fgetwc.c 1.3 +23 -5 src/lib/libc/stdio/fputwc.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message