Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove readLoop #94

Merged
merged 15 commits into from
Jun 10, 2019
Merged

Remove readLoop #94

merged 15 commits into from
Jun 10, 2019

Conversation

nhooyr
Copy link
Contributor

@nhooyr nhooyr commented Jun 7, 2019

Closes #93

@codecov
Copy link

codecov bot commented Jun 10, 2019

Codecov Report

Merging #94 into master will decrease coverage by 3.74%.
The diff coverage is 74.4%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #94      +/-   ##
==========================================
- Coverage   80.01%   76.27%   -3.75%     
==========================================
  Files          14       13       -1     
  Lines        1001      978      -23     
==========================================
- Hits          801      746      -55     
- Misses        152      177      +25     
- Partials       48       55       +7
Impacted Files Coverage Δ
wsjson/wsjson.go 51.21% <0%> (-1.29%) ⬇️
accept.go 88.63% <0%> (-0.13%) ⬇️
wspb/wspb.go 58.97% <0%> (-1.56%) ⬇️
header.go 94.93% <100%> (+0.65%) ⬆️
websocket.go 71.52% <73.68%> (-7.49%) ⬇️

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 d8e872c...73d39e2. Read the comment docs.

Can't go any lower than this afaict. 16 bytes per Writer
and 24 bytes per Reader. go tool pprof agrees with me on
bytes per op but says the allocs per op are 3 instead of 4
and thinks echoLoop is allocating. I don't know.

Lots of cleanup can be performed.

Closes #95
@nhooyr nhooyr merged commit 71e5415 into master Jun 10, 2019
@nhooyr nhooyr deleted the removeReadLoop branch June 10, 2019 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential leak when applications don't read from the connection
1 participant