[#82706] [Ruby trunk Bug#13851] getting "can't modify string; temporarily locked" on non-frozen instances — cardoso_tiago@...
Issue #13851 has been updated by chucke (Tiago Cardoso).
3 messages
2017/09/07
[#82853] [Ruby trunk Bug#13916] Race condition when sending a signal to a new fork — russell.davis@...
Issue #13916 has been reported by russelldavis (Russell Davis).
3 messages
2017/09/19
[#82892] [Ruby trunk Bug#13921] buffered read_nonblock doesn't work as expected using SSLSocket — cardoso_tiago@...
Issue #13921 has been updated by chucke (Tiago Cardoso).
3 messages
2017/09/20
[ruby-core:82711] Re: [Ruby trunk Bug#13851] getting "can't modify string; temporarily locked" on non-frozen instances
From:
Martin J. Dürst <duerst@...>
Date:
2017-09-08 01:47:09 UTC
List:
ruby-core #82711
On 2017/09/08 06:11, Eric Wong wrote: > cardoso_tiago@hotmail.com wrote: >> So, after I found that out, I noticed something really >> strange: Using the `IO#read_nonblock(nread, buffer, exception: >> false)` reduces the throughput of my solution significantly >> (it also uses up significantly more memory). When using both >> `IO#read_nonblock(nread, exception: false)` and >> `IO#read_nonblock(nread, buffer)`, I get optimal performance. > > It seems you've figured that out in in [ruby-core:82707], > but I think my earlier note about using thread-local storage > for short-lived buffers still applies. Per-socket buffers > (which you seem to be using) would use more object slots in > common situations. > >> This might be a bit off-topic. Should I open a new ticket with my findings? If it's still relevant, then yes, please. Regards, Martin. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>