You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JSON-RPC read buffer hangs onto a lot of memory if on big request or response is used. #544
There's one more performance aspect to it... If a response has 15MB, and it comes in chunks of 8KB, it means it will come in 1920 chunks. So 1920 times the buffer will be resized and the previous contents copied over.
Activity
alexdima commentedon Nov 19, 2019
There's one more performance aspect to it... If a response has 15MB, and it comes in chunks of 8KB, it means it will come in 1920 chunks. So 1920 times the
bufferwill be resized and the previous contents copied over.alexdima commentedon Nov 19, 2019
I'd also not feel so bad about it, it is a common issue that has hit even nodejs -- nodejs/node#3145 -- italoacasas/node@cdfa056
Fixes #544: JSON-RPC read buffer hangs onto a lot of memory if on big…
mjbvz commentedon Oct 15, 2020
See c446737 for an example fix