[Patches] [ python-Patches-491049 ] Small PyString_FromString optimization

noreply@sourceforge.net noreply@sourceforge.net
Sun, 09 Dec 2001 23:42:27 -0800


Patches item #491049, was opened at 2001-12-09 23:42
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=491049&group_id=5470

Category: Core (C code)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: David Jacobs (dbj)
Assigned to: Nobody/Anonymous (nobody)
Summary: Small PyString_FromString optimization

Initial Comment:
Made a very small optimization change to the 
PyString_FromString routine.

Since the length of the string is already being stored 
in size, changed the strcpy to a memcpy for a small 
speed improvement.

diff is off the latest CVS.

David Jacobs
jacobsl001@hawaii.rr.com

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=491049&group_id=5470