servo / heapsize

In support of measuring heap allocations in Rust programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Increase the tuple length for implementing HeapSizeOf

asajeffrey opened this issue · comments

#57 implements HeapSizeOf for tuples of length up to 5. We should increase this limit to 12, which is (e.g.) the limit on tuple Clone in stdlib.

These impls could be generated with a macro, similar to https://github.com/rust-lang/rust/blob/master/src/libcore/tuple.rs