Skip to content
New issue

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

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

Already on GitHub? # to your account

GeeRPC DAY1 中对NewGobCodec中创建写缓冲区的提问 #67

Open
yanyanran opened this issue Jan 15, 2023 · 0 comments
Open

GeeRPC DAY1 中对NewGobCodec中创建写缓冲区的提问 #67

yanyanran opened this issue Jan 15, 2023 · 0 comments

Comments

@yanyanran
Copy link

讨教一下,请问在GeeRPC的gob.go中,NewGodeCodec方法里为什么只给写加缓冲区而不给读加缓冲区呢?加一个读缓冲区bufio.NewReader(conn)传给gob.NewDecoder()效率不是会更高吗?
gob

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant