Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes.

For example C++ can shoehorn you to a style of programming where 50% of time is spent in allocations and deallocations if your code is otherwise optimal.

The only way to get that back is not to use stl containers in ”typical patterns” but to write your own containers up to a point.

If you didn’t do that, youd see in the profiler that heap operations take 50% of time but there is no obvious hotspot.



This is not proof. What you said is not incorrect, but it doesn't prove that your software is fast because you applied small optimizations everywhere.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: