4 ms·
That would entail adding a branch instruction and risking a cache miss on every single video playback in order to save a couple hundred bytes in a data stream a
by xenophonf 3y ago
That would entail adding a branch instruction and risking a cache miss on every single video playback in order to save a couple hundred bytes in a data stream at least four orders of magnitude larger.
- refibrillator 3y agoSpeculating? I think branch predictors would eat this for lunch
- xenophonf 3y agoHence, my use of the word "risk".
- kazinator 3y agoWhy not also show the same video title, thumbnail, content, comments and side bar regardless of the video URL?
- xenophonf 3y agoI mean, it's an Easter egg. These things aren't known for their practicability. If one were to object to this, it's because it pushes unnecessary computational costs on every single end-user device that has to render that CSS since the comparison and branch now happens client-side at page styling time. I wonder how many billions of CPU cycles that's wasted.