Author pitrou
Recipients josh.r, jtaylor, neologix, njs, pitrou, skrah, vstinner
Date 2014-04-27.23:35:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Ok, now the real use case where it becomes faster: I implemented the
> same optimization for bytearray.

The real use case I envision is with huge powers of two. If I write:

  x = 2 ** 1000000

then all of x's bytes except the highest one will be zeros. If we map those to /dev/zero, it will be a massive saving for programs using huge powers of two.
Date User Action Args
2014-04-27 23:35:24pitrousetrecipients: + pitrou, vstinner, njs, skrah, neologix, jtaylor, josh.r
2014-04-27 23:35:24pitrousetmessageid: <>
2014-04-27 23:35:24pitroulinkissue21233 messages
2014-04-27 23:35:23pitroucreate