I would recommend using the actual Guid rather than the string representation of Guid . Yes, when comparing strings, length affects the number of operations required, since it must compare strings by characters (at the minimum minimum, this prohibits any special options, such as IgnoreCase ). The actual Guid will give you just 16 bytes for comparison, not a minimum of 32 in string .
As the saying goes, you most likely will not notice the difference ... premature optimization and all of this. I would just go for the Guid key, as this is data.
Adam robinson
source share