2 ms·
>> I assume it is because it includes a 10-pound bag of libraries... Yes. The biggest source of this problem is that someone calling a function doesn't know ho
by phkahler 12y ago
>> I assume it is because it includes a 10-pound bag of libraries...
Yes. The biggest source of this problem is that someone calling a function doesn't know how that function actually works and what its time complexity is. Sometimes it's that a function is asymptotically slower than it needs to be, but often it's that writing a composite of the calling and called functions could result in combining an inner and outer loop.
When you use large libraries that do more complex things, your opportunity to optimize across levels goes away because you can't know all the code and where this issue will come up.