In order to conserve memory, I intent to use integer(1) instead of the standard integer(4) for one of my variables in the derived type.
logical :: check
integer(1) :: types
real(8) :: vol,...
end type cell
My types variable will only have values from 0 to 2. Hence I intent to use integer(1) instead of the standard integer(4).
Will it give any performance issue such as slowing down of the code?
I read below that if using integer(2): "Using this feature may have adverse performance implications, and we do not recommend it. "
I wonder integer(1) also will get this problem.