News for hackers. Stuff that matters.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by pg on Thursday February 05, 2009 @03:17PM (#468599)
The computation for the orange usernames was destroying performance. Not directly, but because it caused a lot of stuff to get loaded from disk that would not otherwise have been. So I've temporarily turned the feature off till I can write a more efficient version.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by tlrobinson on Thursday February 05, 2009 @03:41PM (#468659)
It seems like it is something that could be computed once every few hours and cached without affecting the experience.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by Shamiq on Thursday February 05, 2009 @03:20PM (#468610)
Do you mind posting the current code for it? I'm sure some of us would love to give optimization a shot.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by pg on Thursday February 05, 2009 @03:40PM (#468656)
I appreciate the offer, but it's not the kind of optimization that consists of taking one chunk of code and making it faster. The answer will consist of several little changes spread out throughout the code.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by palish on Thursday February 05, 2009 @03:25PM (#468616)
Optimizing a program via messageboard would be like writing a program by mail.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by Shamiq on Thursday February 05, 2009 @03:26PM (#468617)
Or like a programming competition.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by jey on Thursday February 05, 2009 @04:55PM (#468810)
That's how most open source development happened for a long time.
Re:Ask HN: Is HN slow for you lately? Or even not responding? by lsb on Thursday February 05, 2009 @04:07PM (#468742)
Apropos of this, has anyone had success by swapping a platter-based disk drive for a SSD?
Re:Ask HN: Is HN slow for you lately? Or even not responding? by andreyf on Thursday February 05, 2009 @04:45PM (#468791)
caused a lot of stuff to get loaded from disk that would not otherwise have been

Why not just keep it all in memory? We talk a lot, but it doesn't seem like the database should be all that large...

Re:Ask HN: Is HN slow for you lately? Or even not responding? by jonursenbach on Thursday February 05, 2009 @03:47PM (#468679)
How come you just didn't do the computations as a background process and let it run when each new comment comes in?