eli
ImageSharp slow asf for some reason
Alright thanks very much for the info, and yes the semaphores were silly, in my production code I put those in as a bandaid cause I was running into resources limits due to high concurrency on compression, but obviously not needed in the benchmark 🤦
23 replies
Contains returning False despite same hashcode and Equals returning true
Just gonna change my implementation to use a List and remember to always check Contains because there isn't really anything meaningful I can generate the hashcode from that won't cause this issue
80 replies
Contains returning False despite same hashcode and Equals returning true
Ah I understand the issue now
EF Gets a product
EF then gets the Qc Photo Sets (but not the Qc Photos within them) and adds them to the products set based off the computed hash currently
Then EF adds the Qc Photos within the Qc Photo sets and the hashcode is changed but their slot in hashset is based off old hashcode
80 replies