-
-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I read the PR and the long comment thread linked to this. Super clear.
A helpful thing in the write implementations is the “fast path” and “slow path” code comments. Keep them!
@@ -23,6 +23,10 @@ | |||
|
|||
module Async | |||
module IO | |||
# The default block size for IO buffers. | |||
# BLOCK_SIZE = ENV.fetch('BLOCK_SIZE', 1024*16).to_i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Is this commented-out code line meant to be there?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I sometimes use it for benchmarking different block sizes :p But I don't think it's suitable for release since it's a bit of a hack.
@olleolleolle thanks for your feedback. One thing I think I've grown to accept, is that The more I work on this code, the more I realise how difficult it is to get the right semantics without breaking the code somewhere else. I really believe that ruby/ruby#1870 is the right solution. |
I haven't had time to look at this because, as you said, there's so many edge cases to take into account. That PR to Ruby looks superinteresting. I hope it gets accepted! |
@judofyr what I can say, is that an |
ded8a89
to
ed20d8b
Compare
Fixes #23