KNOCK-KNOCK
KNOCK-KNOCK-WHO-THERE
KNOCK-KNOCK-WHO-THERE-FLE-COMPRSSN
KNOCK-KNOCK-WHO-THERE-FLE-COMPRSSN-TALK.TAR.TRZ.BZ2.GZ
KNOCK-KNOCK-WHO-THERE-FILE-COMPRSSN-TALK_FINAL.TAR.TRZ.BZ2.GZ
KNOCK-KNOCK-WHO-THERE-FILE-COMPRESSION-TALK_FINAL2.TAR.TRZ.BZ2.GZ
Compression
o(*^β½^*)o
"Roles of the JavaScript are extending far beyond XML/HTML DOM manipulation"
(lol cute)
"Roles of the JavaScript are extending far beyond XML/HTML DOM manipulation"
we are creating a ton of jahhvascript traffic, y'all
"JavaScript data traffic is
saving over 50% by HTTP compression."
zlib.gzip(min.code, function (err, compressed) {
if (err) {
log.error(err, 'Unable to gzip output')
return fs.writeFile(cachedFile, min.code, logger)
}
fs.writeFile(cachedFile, compressed, logger)
})
zlib.gzip(min.code, function (err, compressed) {
if (err) {
log.error(err, 'Unable to gzip output')
return fs.writeFile(cachedFile, min.code, logger)
}
fs.writeFile(cachedFile, compressed, logger)
})
HTTP Compression
Accept-Encoding:gzip, deflate, sdch, br
Accept-Encoding:gzip, deflate, sdch, br
Huffffffff
ff-ffffffman
coding
get the pppppp
ppppp
pprobability
π³π³π³π³ π³ π³ π³ π³ π³ π³ π³ π³ π³ π³ π³ π³
π³π³trees
π³π³π³π³ π³ π³ π³ π³ π³ π³ π³ π³ π³ π³ π³ π³
Abraham Lempel and Jacob Ziv
LZ77
< length, distance >
DEFLATE: used with PNGs, ZIP, gzip
Accept-Encoding:gzip, deflate, sdch, br
more control over processing + memory use
create better tradeoffs
comes with 9 presets for compression
codin o'clock
Accept-Encoding:gzip, deflate, sdch, br
brotli
brotli:more intune to HTTP compression
comes with a dictionary of commonly used HTML terms
butit's base, it's a bit
slower
require('iltorb')
codin o'clock
require('iltorb')
wayyyy slower
way faster
require('node-snappy')
Accept-Encoding:gzip, deflate, sdch, br
Thanks for having me
o(*^β½^*)o
sourcesdot js
libbbs
articles