Add a faster Windows specific rb_io_wait() implementation#417
Add a faster Windows specific rb_io_wait() implementation#417larskanis merged 1 commit intoged:masterfrom
rb_io_wait() implementation#417Conversation
It is based on the code that was removed in commit ged@6c885e8 Fixes ged#416
5c950f2 to
b50eb0c
Compare
|
Nit: both I'm basically the only programmer I've ever met who actually checks these kinds of return codes when writing low level code, but you'd be shocked at the number of bugs it's found, and the number of times it's saved my butt when debugging mysterious problems. Code I've written like this has even found bugs in WINE. Perhaps you could I usually find myself wrapping calls to handle-closing functions like If you're compiling with MSVC, you can even annotate the param with |
|
@ariccio Thank you for your notes! I totally agree with you, but I judge this patch as a workaround only and would better invest my time into solving the slowness in ruby core. The code here worked for 11 years now. |
|
@ariccio If you provide a PR I'll merge it. |
This fails on Windows, since the introduction of #417
|
I appreciate it! But my local environment is not setup right for compiling ruby modules right now. You're probably right that it's no big deal. I'll come back to this when I can find time! Thanks for maintaining this package. |
It is based on the code that was removed in commit 6c885e8
Fixes #416
CC: @jirubio