Calculate size on a per-message basis.