Ruling out arbitrary cost copy construction?

bearophile bearophileHUGS at lycos.com
Sat Oct 30 15:37:40 PDT 2010


Walter Bright:

> I think it's also important to make BigInt.sizeof == ulong.sizeof. To that end, 
> you can use the least significant bit to mean "this is not a pointer", as in a 
> 63 bit integer << 1.

Lot of time ago I have instead suggest BigInt.sizeof == size_t.sizeof, because in most programs you need integers smaller than 63 bit, 31 bits are enough. This increases the performance a little on 32 bit systems.

Bye,
bearophile


More information about the Digitalmars-d mailing list