3 ms·
I don't know how compression works; would a common library for Javascript save bandwidth? I'm just thinking that JS is a lot of repeated characters and keywords
by Cthulhu_ 3y ago
I don't know how compression works; would a common library for Javascript save bandwidth? I'm just thinking that JS is a lot of repeated characters and keywords, and any browser or npm or node installation could be shipped with a (partial) dictionary.
Although the bandwidth savings would only be the size of that dictionary.
Still, I can't help but think there's ways to improve size & bandwidth usage by a lot, even besides using a different compression algorithm; a non-HTTP transfer method, for example.
- infogulch 3y agoThe bandwidth savings would be the size of the dictionary per downloaded package.