3 ms·
These short IDs are likely generated for performance reasons. Meaningful IDs would increase page size quite a bit (not just in the HTML, but in the CSS and Java
by davidmurdoch 5y ago
These short IDs are likely generated for performance reasons. Meaningful IDs would increase page size quite a bit (not just in the HTML, but in the CSS and JavaScript that references them as well).
Developers sometimes optimize their critical HTML to fit within a tuned initial TCP congestion window to improve performance, so this stuff can make a difference.
- ape4 5y agoIn that case, I hope they'll use esoteric Unicode characters for id names to save bytes /s
- Narishma 5y agoThose will to take more bytes than plain ASCII characters.
- jcelerier 5y agoDon't both gecko and blink store those as UTF-16 anyways ? if so, "à" would take less storage than "aaa" when all of [a-zA-Z0-9]+ have been covered
- zamadatix 5y agoIn decoded memory perhaps, the data format in bytes over the network is going to be whatever the server/page says it is encoded in (utf8 overwhelmingly these days).
- michaelmior 5y agoThese could of course be generated as longer IDs during development and shortened for production.