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

Sometimes when you look at code you know is slow, you can immediately see why it's slow. Obviously you didn't see it when you wrote it, which disproves your hypothesis.


What? Sorry, I genuinely have no idea what you're talking about. Is it possible to look at code and intuit, just by reading, how to speed it up? Duh, yes. If you disagree, lol.

Keep in mind that I've never stated that all performance issues are findable through code review. Just that there are many that are.

> You can very easily spot performance issues through code.

If you think that this is false, there's literally nothing you can contribute.


Demonstrate for me, then.

Here's some slow code: https://github.com/torvalds/linux

Speed it up.


I can't take this seriously. The claim "you can look at SOME code and see how to optimize it" is trivially true, and saying "you can't look at ALL code and see how to optimize it" changes nothing.


Exactly, you have to find the slow code first, with profiling, and then sometimes it is obvious why that code is slow. It is unlikely you can just look at a project and find the slow code in it.


You absolutely can. I've given enough examples that are obviously true. If you can't read code and reason about its performance, that is a personal issue.




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

Search: