Streamline eu_object_size

Mainly to avoid the allocation and the possibility of its failure,
rather than for performance.