apache / dubbo-getty

a netty like asynchronous network I/O library based on tcp/udp/websocket; a bidirectional RPC framework based on JSON/Protobuf; a microservice framework based on zookeeper/etcd
Apache License 2.0
218 stars 69 forks source link

Imp: using gxbytes.Buffer WriteNextBegin/WriteNextEnd #81

Closed AlexStocks closed 2 years ago

AlexStocks commented 2 years ago

What this PR does:

Use gxbytes.Buffer WriteNextBegin/WriteNextEnd to limit memory copy in tcp read session.handleTCPPackage

codecov-commenter commented 2 years ago

Codecov Report

Merging #81 (43cebf1) into master (66f2506) will decrease coverage by 0.04%. The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #81      +/-   ##
==========================================
- Coverage   68.91%   68.87%   -0.05%     
==========================================
  Files           8        8              
  Lines        1422     1420       -2     
==========================================
- Hits          980      978       -2     
  Misses        347      347              
  Partials       95       95              
Impacted Files Coverage Δ
session.go 69.45% <75.00%> (-0.14%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 66f2506...43cebf1. Read the comment docs.

ChangedenCZD commented 2 years ago

有冲突需要处理