From owner-cvs-src@FreeBSD.ORG Mon May 17 05:32:40 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBCD916A4CE; Mon, 17 May 2004 05:32:40 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9945143D1F; Mon, 17 May 2004 05:32:40 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i4HCWeGe044396; Mon, 17 May 2004 05:32:40 -0700 (PDT) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i4HCWeCk044395; Mon, 17 May 2004 05:32:40 -0700 (PDT) (envelope-from tjr) Message-Id: <200405171232.i4HCWeCk044395@repoman.freebsd.org> From: "Tim J. Robbins" Date: Mon, 17 May 2004 05:32:40 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/locale utf8.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 May 2004 12:32:40 -0000 tjr 2004/05/17 05:32:40 PDT FreeBSD src repository Modified files: lib/libc/locale utf8.c Log: Use conversion state objects to store the accumulated wide character, low bound, and the number of bytes remaining instead of storing the raw byte sequence and deriving them every time mbrtowc() is called. This is much faster -- about twice as fast in some crude benchmarks. Revision Changes Path 1.9 +67 -63 src/lib/libc/locale/utf8.c