`JSON::ResumableParser` re-decodes an incomplete number on every chunk it receives, so a long number delivered in small chunks is disproportionately slow to parse -- the work is quadratic (a bit worse in practice) in the number's length....pocke (Masataka Kuwabara)
When a feed boundary fell right after a consumed token -- a `,` or an opening `[` / `{` -- whose effect was not yet committed to the parser's persistent state, the token was dropped on resume, producing parse errors or silently wrong val...pocke (Masataka Kuwabara)
A `//` line comment split across a feed boundary was treated as fully consumed, so comment body delivered in a later chunk leaked out as parsed JSON values. ## Reproduction ```ruby require "json" parser = JSON::ResumableParser.new(all...pocke (Masataka Kuwabara)
`JSON::ResumableParser#<<` raises `Encoding::CompatibilityError` when the first chunk is a frozen multibyte UTF-8 string and more data is fed after a partial parse. ## Reproduction ```ruby require "json" parser = JSON::ResumableParser...pocke (Masataka Kuwabara)
Applied in changeset commit:git|0cab608d3a7791c229eea2ebe276494f063c8176. ---------- [Bug #21127] Thread deadlock does not display backtraces (#12721) Previously, Ruby displayed backtraces for each thread on deadlock. However, it has n...pocke (Masataka Kuwabara)
Previously, Ruby displayed backtraces for each thread on deadlock. However, it has not been shown since Ruby 3.0. It should display the backtrace for debugging. Co-authored-by: Jeremy Evans <code@jeremyevans.net>pocke (Masataka Kuwabara)
Previously, Ruby displayed backtraces for each thread on deadlock. However, it has not been shown since Ruby 3.0. It should display the backtrace for debugging. (related: https://bugs.ruby-lang.org/issues/8214) ## Step to reproduce ...pocke (Masataka Kuwabara)
I found a surprising performance degradation while developing RBS. In short, I tried to remove unnecessary Hash allocations for RBS. Then, it made the execution time 2x slower. VWA for Hash probably causes this degradation. I'd be ha...pocke (Masataka Kuwabara)