heapsize icon indicating copy to clipboard operation
heapsize copied to clipboard

Special handling of arrays if they are big only

Open dtolnay opened this issue 8 years ago • 0 comments

<@nox> In heapsize_derive we do https://github.com/servo/heapsize/blob/master/derive/lib.rs#L36-L42, <@nox> could serde do something similar for array fields? <@dtolnay> nice, yes we could <@dtolnay> let me make a ticket <@nox> Cool. :) <@dtolnay> we can do a bit better even by only doing it when the array size exceeds our biggest array impl <@nox> Yeah true. <@nox> Don't know why we didn't actually, given we have impls too. :)

dtolnay avatar Nov 28 '16 15:11 dtolnay