Skip to content

Commit a016cfb

Browse files
committed
Tweak code formatting in dict compression post
1 parent 5b33613 commit a016cfb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/content/posts/dictionary-compression-performance-zstd-brotli.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ Here's a quick low-level demo for Node.js (v24.6+ or v22.19+) so you can play wi
1919
const zlib = require('zlib');
2020

2121
// A very basic dictionary - a previous API response
22-
const dictionary = Buffer.from('{"type":"event","source":"server-2","status":"active"}');
22+
const dictionary = Buffer.from(
23+
'{"type":"event","source":"server-2","status":"active"}'
24+
);
2325

2426
// A new response we want to compress:
25-
const dataToCompress = Buffer.from('{"type":"event","source":"server-1","status":"inactive"}');
27+
const dataToCompress = Buffer.from(
28+
'{"type":"event","source":"server-1","status":"inactive"}'
29+
);
2630

2731
console.log(
2832
"Compressed data size without dictionary",

0 commit comments

Comments
 (0)