I really don't think any other definition of pstrndup() makes sense --
especially since it always allocates n+1 bytes of memory, even if I go back to its original definition. And on examination, all of our uses of pstrndup() are cases where we want a substring of another string, and we know the substring is of a certain length. So speed up pstrndup() by using memcpy(). (This small change was worth another 50% performance boost when I tested it on test-util-uri.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@80521 13f79535-47bb-0310-9956-ffa450edef68
parent
c13bfd9f
Please register or sign in to comment