This function goes through all the motions of serializing an object, but does nothing with the bytes other than to tally the total length.

serializedSize(obj)

Arguments

obj

An R object.

Value

(integer or double) Number of bytes needed to serialize this object.

Author

Mike FC

Examples

object.size(mtcars)
#> 7208 bytes
serializedSize(mtcars)
#> [1] 3807