MatrixAI / js-quic

QUIC Networking for TypeScript & JavaScript
https://matrixai.github.io/js-quic/
Apache License 2.0
13 stars 1 forks source link

fix: added `readableChunkSize` parameter to config and defaulted the … #84

Closed tegefaulkes closed 7 months ago

tegefaulkes commented 7 months ago

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 the Buffer. This is defaulted to 4KB which is much less than the 1MB that was used before.

Issues Fixed

Tasks

Final checklist

ghost commented 7 months ago
👇 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 CodeSee Map legend