From owner-cvs-src@FreeBSD.ORG Sun May 9 06:04:50 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 01FFB16A4CE; Sun, 9 May 2004 06:04:50 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB08043D49; Sun, 9 May 2004 06:04:49 -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 i49D4nGe029779; Sun, 9 May 2004 06:04:49 -0700 (PDT) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i49D4nKq029778; Sun, 9 May 2004 06:04:49 -0700 (PDT) (envelope-from tjr) Message-Id: <200405091304.i49D4nKq029778@repoman.freebsd.org> From: "Tim J. Robbins" Date: Sun, 9 May 2004 06:04:49 -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 runetype.c tolower.c toupper.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: Sun, 09 May 2004 13:04:50 -0000 tjr 2004/05/09 06:04:49 PDT FreeBSD src repository Modified files: lib/libc/locale runetype.c tolower.c toupper.c Log: Use a binary search to find the range containing a character in RuneRange arrays. This is much faster when there are hundreds of ranges (as is the case in UTF-8 locales) and was inspired by a similar change made by Apple in Darwin. Revision Changes Path 1.9 +10 -6 src/lib/libc/locale/runetype.c 1.9 +12 -7 src/lib/libc/locale/tolower.c 1.9 +12 -7 src/lib/libc/locale/toupper.c