more efficient to use ```erlang:external_size(GeneratedTerm)```