PyMem_MALLOC (was [Python-Dev] Snake farm)

Martin v. Loewis martin@v.loewis.de
24 Nov 2002 09:36:41 +0100


Tim Peters <tim.one@comcast.net> writes:

> Probably can't be, but this is ideal for a conditional-move instruction, and
> more architectures are growing that.  In the meantime, Martin made this
> change, and I haven't measured a slowdown on my box (it is an extra
> test-&-branch under MSVC, but the branch is over just one instruction so
> doesn't (I believe) flush the pipeline).

BTW, you managed to trick me into writing malloc((n) || 1). That took
some time to figure out...

Regards,
Martin