Submission timeline
2007–2026One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.
First comments on top threads
HN comment orderKnuth was writing for MIX. This machine, like all its contemporaries, had a flat memory hierarchy. If you've ever wondered why the CS literature seems full of trees, but in 2010 practice, sets, associative memories, etc., are often implemented with hashing, consider that a cache miss on much modern hardware is 300 cycles. The equivalent of for (register int i = 0; i < 299; i++) ; can pay for itself by saving a cache miss. The log N cache…
A great reminder that spatial locality can be critical to performance. But that's actually quite well-known, and maybe a more important lesson would be: don't take performance for granted, even in standard libraries of well stablished languages or algorithms, there might be much room for improvement for your use case (if you need it). This said, the article feels quite arrogant. As other commenters say, the idea behind the optimization is nothing new, just some basic concepts well applied. Which…
This is a great article and the diagrams illustrating the difference between a binary heap and a B-heap are awesome. The comments are amusingly negative, too. It's worth noting that it was published in 2010, though. The Wikipedia article on B-heaps actually references this article: http://en.wikipedia.org/wiki/B-heap
Summary: A common way to store a binary heap is so that the children of n are located at {2n, 2n+1}. This has the effect that parent and child are usually located in different memory pages if the tree is big. Traversing the tree is faster if it's stored so that each page contains a small subtree that is a few levels deep. So we go from [1] to [2] where the white boxes are memory pages and the numbers…
The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.
- Breakout years
- 2
- Total points
- 628
- Total comments
- 113
100+ points or 50+ comments
reference only — not used in Hall rules or ranking
reference only — not used in Hall rules or ranking
Every submission
| Date | Title as submitted | By | Points | Comments |
|---|---|---|---|---|
| 2010-06-12 | You're Doing It Wrong: CS in the real worldFirst breakout · Best thread | fragmede | 273 | 56 |
| 2013-04-21 | B-Heap vs. Binary Heap (2010) | sakai | 99 | 20 |
| 2014-03-07 | Reminder: You're Doing It Wrong (2010) | gtirloni | 2 | 0 |
| 2014-08-15 | Think you've mastered the art of server performance? (2010) | luu | 2 | 0 |
| 2015-09-20 | You're doing it wrong (2010) – Optimizing Varnish | erickt | 3 | 0 |
| 2016-03-02 | You're Doing It Wrong, by phk (2010) | oskarth | 2 | 0 |
| 2018-03-18 | B-Heap vs. Binary Heap (2010)Latest 20+ point return | navinsylvester | 238 | 36 |
| 2019-09-07 | You're doing it wrong (2010) | mac01021 | 3 | 0 |
| 2020-08-19 | You're Doing It Wrong | kristianp | 2 | 0 |
| 2022-05-07 | You're doing server performance optimization wrong (2010) | vintermann | 3 | 1 |
| 2025-11-18 | You're Doing It Wrong (Kamp 2010) | xk3 | 1 | 0 |