Server IP : 162.213.251.212 / Your IP : 18.116.8.98 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/home/allssztx/public_html/easybuyer/node_modules/hpack.js/bin/ |
Upload File : |
#!/usr/bin/env node var hpack = require('../'); var options = { table: { size: 1024 } }; var compressor = hpack.compressor.create(options); var vector = []; for (var i = 0; i < 1024; i++) { vector.push({ name: 'kind-of-big-header-name__', value: 'not-so-small value yes!', huffman: true, neverIndex: true }); } compressor.write(vector); var input = compressor.read(); console.time('decompressor'); for (var i = 0; i < 2000; i++) { var decompressor = hpack.decompressor.create(options); decompressor.write(input); decompressor.execute(); while (true) { var chunk = decompressor.read(); if (!chunk) break; } } console.timeEnd('decompressor');