Skip to content

Commit 54c7b11

Browse files
committed
Address grammar mistakes in Compression Streams
Fix minor grammar errors in Compression Streams documentation. docs/Deep Dive/Modules/CompressionStreams.md
1 parent c90103f commit 54c7b11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Deep Dive/Modules/CompressionStreams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Compression Streams work by passing a chunk of data (uint8 array) in and then re
2525

2626
Speed is of paramount importance when trying to compress/decompress data.
2727

28-
In Compression Streams, we try to allocate enough memory up front, so we only have to perform the compression once. For Decompression Streams, we employee a 2x increase in memory allocated each pass we attempt to decompress a chunk (with a cap of 1GB). This design was done to ensure minimal amounts of allocations being required, and to limit the number of times we needed to call inflate/deflate.
28+
In Compression Streams, we try to allocate enough memory up front, so we only have to perform the compression once. For Decompression Streams, we employ a 2x increase in memory allocated each pass we attempt to decompress a chunk (with a cap of 1GB). This design was done to ensure minimal amounts of allocations being required, and to limit the number of times we needed to call inflate/deflate.
2929

30-
Of course with the increase in memory usage, on smaller memory devices we may hit a cap. To handle this, we employee a back off algorithm that will quickly scale back memory allocation size if they start to fail.
30+
Of course with the increase in memory usage, on smaller memory devices we may hit a cap. To handle this, we implemented a back off algorithm that will quickly scale back memory allocation size if they start to fail.
3131

3232
We currently buffer all the compression/decompression output per chunk, and return them to the user all at once. We could also consider the possibility of returning the chunk output to the user after every call to inflate/deflate.
3333

0 commit comments

Comments
 (0)