« * K @headius.bsky.social

Charles Oliver Nutter @headius.bsky.social

2026-10-27 17:25 UTC

Here's a nasty NIO gotcha: passing a large heap buffer to a blocking channel will copy the entire buffer to native, even if the write only consumes a small part of it. Subsequent writes will repeatedly copy everything left. Set a limit to only copy reasonably-sized chunks: buff.ly/1ojIuZt

Link: Cap heap buffer writes at 2MB per call by sampokuokkanen · Pull Request #9896 · jruby/jruby (buff.ly/1ojIuZt)

0 likes, 0 reposts, 0 replies

3 Next post4 More from @headius.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup