mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
![]() Ref: https://github.com/ruby/json/issues/655 Followup: https://github.com/ruby/json/issues/657 Assuming the generator might be used for fairly small documents we can start with a reasonable buffer size of the stack, and if we outgrow it, we can spill on the heap. In a way this is optimizing for micro-benchmarks, but there are valid use case for fiarly small JSON document in actual real world scenarios, so trashing the GC less in such case make sense. Before: ``` ruby 3.3.4 (2024-07-09 revision |
||
---|---|---|
.. | ||
depend | ||
extconf.rb | ||
generator.c | ||
generator.h |