Skip to content

JSON-RPC read buffer hangs onto a lot of memory if on big request or response is used. #544

Closed

Description

Activity

  1. added this to the 3.16 milestone on Nov 19, 2019
  2. alexdima commented on Nov 19, 2019

    @alexdima
    Member

    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.

  3. alexdima commented on Nov 19, 2019

    @alexdima
    Member

    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

  4. added a commit that references this issue on Oct 7, 2020
    c446737
  5. mjbvz commented on Oct 15, 2020

    @mjbvz

    See c446737 for an example fix

  6. locked and limited conversation to collaborators on Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunities

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions