Re:Show HN: Seen: rendering 1,000,000+ notes in <1s. speed, ...
by _bittere on Monday February 10, 2025 @11:13AM
(#43001900)
No specific reason: it's a great hashing algorithm, and the first that came to mind. I'll look into other hash functions. Thanks for the suggestion!
Yes, I believe the two are related (and related to the scroll event handler). I'll look into that too!
Re:Show HN: Seen: rendering 1,000,000+ notes in <1s. speed, ...
by cmgriffing on Tuesday February 11, 2025 @05:55PM
(#43019438)
FNV-1a might be worth looking into. It's pretty fast
It seems currently the scroll struggles when you jump around, e.g. when you click to the bottom of the scroll bar area, the scroll will jump twice, first as you click and the second time as it renders. This is not a big issue if you continuously scroll, but is very noticeable if you use page down or click on the scroll bar. At least on my system, there is a noticeable delay between scrolling and the items being rendered on screen, that might be a related issue?
Those notes aside, I could definitely see value for this in cases when you want to get a glance overview or similar of a large number of notes, it's a cool idea.