Hacker News new | past | comments | ask | show | jobs | submit login
HN takes 5secs to “Collapse” any of the replies from Trump's win
3 points by lucaspottersky on Nov 9, 2016 | hide | past | favorite | 2 comments
Reading https://news.ycombinator.com/item?id=12907201 I was really annoyed by the fact that it takes ~5secs to "Collapse" any of the Replies.

It left me wondering: is it possible at all to make it better? Is it the result of lousy programming? Or is the thread just too big and as such there's not much to do?

http://i.imgur.com/xiPcxBd.gifv




Collapses are persisted across logins. My guess is that they collapse once they've heard back that the collapse was committed. If HN is slow to respond to requests (like it is for me right now), this might be the cause of the issue.

If my guess is correct, it could probably be changed to optimistically collapse.


http://www.sli.mg/p08qw0

One collapse for 700 comments processes 90k elements...it could be better implemented. But seriously, how often is this an issue? Probably now worth the programming effort.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: