tried, it came up with them, and then they were gone
properties window of the .Portable project
the first fix it suggests is “turn on C#6 support"
and there’s no other fix
Had a discussion at work today about performance of string comparisons. Colleagues wanted to do GetHashCode to compare two long strings, but it turned out to be a bad idea: GetHashCode would need to be
...called every time and it takes about 4 times longer than comparing the strings themselves
that's because string comparison and GetHashCode both need to look at every single character, but GetHashCode needs to multiply and xor things.
So, actually it is more costly and doesnt add any performance when used on few instances.
So, maybe we need more than one hashcode? Could we have a fail-fast-hash that only uses few properties?
oh wait like that
but that makes things more complicated
let’s first measure things
Yes, i dont want to prematurely optimize either.
Just saying, because GetHashCode itself is already trying to be an optimization
Eric J. Smith
problem is that you need a hash that covers the entire object in order to find matches later
you could in theory use a quick hash to determine that it’s different for sure