TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

HN takes 5secs to “Collapse” any of the replies from Trump's win

3 pointsby lucaspotterskyover 8 years ago
Reading https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12907201 I was really annoyed by the fact that it takes ~5secs to &quot;Collapse&quot; any of the Replies.<p>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&#x27;s not much to do?<p>http:&#x2F;&#x2F;i.imgur.com&#x2F;xiPcxBd.gifv

2 comments

z1mm32m4nover 8 years ago
Collapses are persisted across logins. My guess is that they collapse once they&#x27;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.<p>If my guess is correct, it could probably be changed to optimistically collapse.
exploriginover 8 years ago
<a href="http:&#x2F;&#x2F;www.sli.mg&#x2F;p08qw0" rel="nofollow">http:&#x2F;&#x2F;www.sli.mg&#x2F;p08qw0</a><p>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.