This PR addresses the excessive memory used by each QUICStream by providing a readableChunkSize config parameter and using that as the size when allocating the Buffer. This is defaulted to 4KB which is much less than the 1MB that was used before.
Issues Fixed
Fixes #83
Tasks
[X] 1. Add config option for setting the amount of memory used for the readable buffer.
[X] 2. reduce the amount reserved memory to the kilobyte range for each QUICStream.
👇 Click on the image for a new way to code review
####
[![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/MatrixAI/js-quic/84/5cccb0a8/51cdc5f018dcd3faa0b17b4a6e25e77da25f218f.svg)](https://app.codesee.io/r/reviews?pr=84&src=https%3A%2F%2Fgithub.com%2FMatrixAI%2Fjs-quic)
#### Legend
Description
This PR addresses the excessive memory used by each QUICStream by providing a
readableChunkSize
config parameter and using that as the size when allocating theBuffer
. This is defaulted to 4KB which is much less than the 1MB that was used before.Issues Fixed
Tasks
Final checklist