Join us

Reversing YouTube's "Most Replayed" Graph

Reversing YouTube's "Most Replayed" Graph

An engineer cracked open YouTube’s “most replayed” heatmap. Turns out it runs on sampled view frequency arrays, client-side normalization, and SVG rendering stitched together with Cubic Bézier splines for that smooth, snappy curve.

Behind the scenes, playback gets logged with a difference array + prefix sum combo, cutting down write churn. The symmetrical dips bracketing those replay spikes? That’s Cardinal spline interpolation smoothing out the chaos.


Give a Pawfive to this post!


Only registered users can post comments. Please, login or signup.

Start writing about what excites you in tech — connect with developers, grow your voice, and get rewarded.

Join other developers and claim your FAUN.dev() account now!

Avatar

VarBear #SoftwareEngineering

FAUN.dev()

@varbear
SWE Weekly Newsletter, Varbear. Curated Programming news, tutorials, tools and more!
Developer Influence
28

Influence

1

Total Hits

110

Posts