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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 10 Dec 2001 07:46:46 -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: Closed
>Resolution: Accepted
Priority: 5
Submitted By: David Jacobs (dbj)
>Assigned to: Guido van Rossum (gvanrossum)
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

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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-10 07:46

Message:
Logged In: YES 
user_id=6380

Thanks! Applied as stringobject.c 2.147.

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

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