gnu/62782: strlcpy performance problem

chc chc at mail2000.com.tw
Fri Feb 13 02:40:25 PST 2004


>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:


More information about the freebsd-bugs mailing list