Improving performance due to setting types of the fields of a struct

Thanks for the explanation. Now I got it