Date: Fri, 13 Feb 2004 02:30:21 -0800 (PST) From: chc <chc@mail2000.com.tw> To: freebsd-gnats-submit@FreeBSD.org Subject: gnu/62782: strlcpy performance problem Message-ID: <200402131030.i1DAULwP098937@www.freebsd.org> Resent-Message-ID: <200402131040.i1DAePHB048485@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 62782 >Category: gnu >Synopsis: strlcpy performance problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 13 02:40:25 PST 2004 >Closed-Date: >Last-Modified: >Originator: chc >Release: 4.8 >Organization: >Environment: >Description: strlcpy.c line 71: while (*s++); /* performance problem when src is mmap pointer */ Mmap a big file which is above 500M and use strlcpy. I found it was very slow. >How-To-Repeat: mmap a big file and use strlcpy() to copy some data. >Fix: It seems no way to solve it. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402131030.i1DAULwP098937>