optimize structure assignment based on size and alignment