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

That's not the bottleneck. Essentially there's an in-memory database (known as hash tables). Stuff is lazily loaded off disk into memory, but most of the frequently needed stuff is loaded once at startup.

The bottleneck is the amount of garbage created by generating pages. IIRC there is some horrible inefficiency involving UTF-8 characters.



Are you using any sort of in-memory fragment caching? That seems like it might reduce some render overhead.


A great deal, and it does.


perhaps continuations could be used more judiciously as well


> That's not the bottleneck.

What is the main bottleneck of HN?


See the second paragraph.




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

Search: