Message 186464 - Python tracker

Message186464

Author pitrou
Recipients eric.snow, lemburg, pitrou, serhiy.storchaka, vstinner
Date 2013-04-09.22:24:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365546232.3899.4.camel@localhost.localdomain>
In-reply-to <1365545629.67.0.753493852507.issue17628@psf.upfronthosting.co.za>
Content
> Because most people agree that checking first and/or last
> byte/character is not a good idea (may be slower), here is a new patch
> removing code checking first/last byte or character in
> bytes_richcompare() and unicode_eq().

You misunderstood. Checking the first byte is ok, it's checking the last
byte which can misfire.

> It removes the usage of the "register" keyword, I read that modern
> compilers generate worse code when this keyword is used. Register
> allocators of modern compilers known better than you which variables
> should use a register.

I think you should open a separate issue to remove all instances of the
"register" keyword in the code base. It has become useless, any modern
compiler will allocate registers by itself, happily ignoring any
"register" hint.
History
Date User Action Args
2013-04-09 22:24:10pitrousetrecipients: + pitrou, lemburg, vstinner, eric.snow, serhiy.storchaka
2013-04-09 22:24:10pitroulinkissue17628 messages
2013-04-09 22:24:09pitroucreate