]> granicus.if.org Git - python/commit
SF patch #491049 (David Jacobs): Small PyString_FromString optimization
authorGuido van Rossum <guido@python.org>
Mon, 10 Dec 2001 15:45:54 +0000 (15:45 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Dec 2001 15:45:54 +0000 (15:45 +0000)
commit169192e8184fe742c9694bb2ba9a545302a0fc44
tree4a3cce7be4b97abc8acb7c56c74d588b9944a959
parent49bdaede1b688a7efa17257895f3556496a02277
SF patch #491049 (David Jacobs): Small PyString_FromString optimization

PyString_FromString():
  Since the length of the string is already being stored in size,
  changed the strcpy() to a memcpy() for a small speed improvement.
Objects/stringobject.c