Comment on Why is processing a sorted array faster than an unsorted array?parentComments−derleth13y> higher level languages will always be significantly slower than CLooking at benchmarks, I can see this is factually incorrect.Also... show me where C allows you to see the pipeline directly. It's hard to optimize something you can't see.C is an abstraction layer. So is assembly. Both are relatively thick when you're talking about things like branch prediction and pipelining.
Comments
> higher level languages will always be significantly slower than C
Looking at benchmarks, I can see this is factually incorrect.
Also... show me where C allows you to see the pipeline directly. It's hard to optimize something you can't see.
C is an abstraction layer. So is assembly. Both are relatively thick when you're talking about things like branch prediction and pipelining.