Closed saurabhagrawal-86 closed 1 year ago
@r-hang i think you pulled in the changes incorrectly to this branch.
@sywhang, the author reached out after their rebase. I'm working with them now.
@r-hang mb, apologies for assuming :p saw your commits show up all of a sudden so I assumed you pushed to the branch. Thanks.
@saurabhagrawal-86 we've updated dev again to resolve some outstanding staticcheck issues. Could you rebase again and see if the remote go1.19 and go1.20 builds pass? Your change built for me locally when I last tested it out once rebased on dev.
Merging #574 (057a4c6) into dev (1e96648) will increase coverage by
0.01%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## dev #574 +/- ##
==========================================
+ Coverage 68.00% 68.01% +0.01%
==========================================
Files 140 142 +2
Lines 23872 23878 +6
==========================================
+ Hits 16233 16241 +8
+ Misses 4578 4577 -1
+ Partials 3061 3060 -1
Impacted Files | Coverage Δ | |
---|---|---|
protocol/binary/stream_reader.go | 95.97% <ø> (-0.05%) |
:arrow_down: |
protocol/binary/stream_writer.go | 67.21% <ø> (+1.05%) |
:arrow_up: |
protocol/binary/string_post_go120.go | 100.00% <100.00%> (ø) |
|
protocol/binary/string_pre_go120.go | 100.00% <100.00%> (ø) |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
Optimise StreamReader's ReadString CPU by 35% and memory by 50% using the new
String
andSliceData
functions introduced in the unsafe package in go 1.20Similar changes to optimise StreamWriter's WriteString() method.