Skip to content
Commit ab790404 authored by dgaudet's avatar dgaudet
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment