Why is typeA == typeB slower than typeA == typeof(TypeB)? Languages

Why is typeA == typeB slower than typeA == typeof(TypeB)?

I've been optimising/benchmarking some code recently and came across this method:This is called from a performance critical loop elsewhere, so I naturally assumed all those typeof(...) calls were adding unnecessary overhead (a micro-optimisation, I know) and could be moved to private fields within the class. (I'm aware there are better...
Read More
Can we say that an x86 CPU has data types? Languages

Can we say that an x86 CPU has data types?

An x86 CPU have some instructions that deal with integers and floating-point numbers.For example: the INC instruction increments an integer (which can be stored in memory or in a register) by 1, so the INC instruction "knows" that it should interpret the bits that it is manipulating as an integer....
Read More