If you're using a higher-level language like Python or Ruby, worrying about things like locality should be pretty low on your performance checklist.
If you're using a higher-level language like Python or Ruby, worrying about things like locality should be pretty low on your performance checklist.
If you're using Python or Ruby for CPU-intensive applications, you probably don't have a performance checklist.
And Python and Ruby both have excellent C bindings, you can rewrite CPU-intensive portions of your application pretty much anytime you need to.
Of course. But at that point you're writing your CPU-intensive code in C, not in Python or Ruby. Saying "Python and Ruby are fast because they can call C code" makes no more sense than saying "Humans are really good at arithmetic because they can use calculators".
By using Python I can write the application quicker, test for correctness, and optimize the most important pieces without wasting time writing the entire thing in C.