On 13/03/14 02:25 PM, Eric Summers wrote:
> Also this approach uses more memory.  At least a byte per pointer and
> maybe more with padding.  In most cases like this you would prefer to
> use a vtable instead of tags to reduce the memory footprint.
> 
> Eric

A vtable uses memory too. Either it uses a fat pointer or adds at least
one pointer to the object.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to