Remove wasteful empty Buffer allocations in `Connection`

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: Core
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Our logic to read data off the wire does a whole bunch of Buffer.alloc(0), simply to indicate a "reset" of internal buffer state. This is wasteful, requiring many needless allocations when we could simply assign the value to null/undefined.

              Assignee:
              Unassigned
              Reporter:
              Matt Broadstone
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: