Re: [Python-Dev] an unimportant question, ...

2009-03-23 Thread Guido van Rossum
This is all over now, but I do think that the change from char to int was made for alignment reasons. I don't know, but I could certainly imagine that aligned memcpy calls are faster. I can't explain why I still put the 3-byte savings comment in SVN -- perhaps I was in a hurry. On Sun, Mar 22, 200

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Antoine Pitrou
Christian Tismer stackless.com> writes: > > Or was it maybe to just keep the string layout on many > common platforms compatible, in order to save rebuilding > so many windows extension modules? > > If the latter is true and the only reason, I vote for reclaiming > the three bytes. Maybe it save

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Thomas Wouters
On Sun, Mar 22, 2009 at 20:38, Christian Tismer wrote: > On 3/22/09 8:01 PM, "Martin v. Löwis" wrote: > >> Now, the internals are very clear to me. What I don't understand >>> is where the three saved bytes should be. >>> >> >> If you look at the various patches in >> >> http://bugs.python.org/iss

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Christian Tismer
On 3/22/09 8:01 PM, "Martin v. Löwis" wrote: Now, the internals are very clear to me. What I don't understand is where the three saved bytes should be. If you look at the various patches in http://bugs.python.org/issue576101 then there is a three-byte saving in all versions from 1 to 6. Conse

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Christian Tismer
On 3/22/09 8:01 PM, "Martin v. Löwis" wrote: Now, the internals are very clear to me. What I don't understand is where the three saved bytes should be. If you look at the various patches in http://bugs.python.org/issue576101 then there is a three-byte saving in all versions from 1 to 6. Conse

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Martin v. Löwis
> Now, the internals are very clear to me. What I don't understand > is where the three saved bytes should be. If you look at the various patches in http://bugs.python.org/issue576101 then there is a three-byte saving in all versions from 1 to 6. Consequentially, the API was changed in those ver

Re: [Python-Dev] an unimportant question, ...

2009-03-22 Thread Michael Foord
Christian Tismer wrote: ... but I'm curious. Hi Guido, while working on Psyco, I stumbled over a log entry in modsupport.h: 19-Aug-2002 GvR1012Changes to string object struct for interning changes, saving 3 bytes. The change to stringobject was this (rev. 2

[Python-Dev] an unimportant question, ...

2009-03-22 Thread Christian Tismer
... but I'm curious. Hi Guido, while working on Psyco, I stumbled over a log entry in modsupport.h: 19-Aug-2002 GvR 1012Changes to string object struct for interning changes, saving 3 bytes. The change to stringobject was this (rev. 28308): Bef