From owner-cvs-all Wed Oct 23 19:54:28 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 14B5D37B401; Wed, 23 Oct 2002 19:54:28 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAB3143E6A; Wed, 23 Oct 2002 19:54:27 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9O2rkmV057559; Wed, 23 Oct 2002 19:53:46 -0700 (PDT) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9O2rjNg057556; Wed, 23 Oct 2002 19:53:45 -0700 (PDT) Message-Id: <200210240253.g9O2rjNg057556@repoman.freebsd.org> From: "Tim J. Robbins" Date: Wed, 23 Oct 2002 19:53:45 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/string wcsstr.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/10/23 19:53:45 PDT Modified files: lib/libc/string wcsstr.c Log: Replace wcsstr() with an implementation based on strstr(), which is far more efficient. The problem with the previous implementation was that it calculated the length of the first argument ("big") with wcslen() when it was not necessary. Revision Changes Path 1.8 +32 -38 src/lib/libc/string/wcsstr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message