Re:The overhead of abstraction in C/C++ vs. Python/Ruby
by astrobe_ on Sunday October 19, 2014 @05:31AM
(#8477750)
I think that this observation is not as relevant to the task at hand that it seems. The author is in the same position as the implementor of a VM, who has to decide which operation will be a primitive and which will not be.
What is actually more important than anything else if you care about performance is which operations are likely to be called from hot loops. It's classic optimization wisdom except that you can only work on expected scenarios rather than real-world uses (until you release your stuff and other people use it).
So a 100x slower abstraction is ok(-ish) as long as it's not somthing to be used in performance critical sections.
[ Parent
| on HN ]
Re:The overhead of abstraction in C/C++ vs. Python/Ruby
by haberman on Sunday October 19, 2014 @03:27PM
(#8479271)
Your comment amounts to: "this performance-related observation doesn't apply in situations where performance is not an issue."
Yes, but I am working in a situation where performance is an issue. So yes, the observation is relevant to the task at hand.