JDF-60 Better implementation for object size calculations