Closed xjunior closed 8 months ago
Hello, @pirj. Any chance we're shipping this soon?
Can you construct a benchmark for this? It looks harmles but I'm also confused why it saves memory, its essentially the same code except for using blocks rather than lambdas
@JonRowe hello! I got to this part of the code by debugging and profiling my own test suite. The description includes a benchmark of it.
@xjunior if you check the benchmarks folder you'll see the sort of thing we like to add with these changes to document them for prosperity (and allow us to re-check if it changes at a later date) this helps us to avoid churn because something works "better on my machine"
@JonRowe I added some. It doesn't show the same results I'm showing above. I believe this is because mine is running on a bigger sample, with rails, rspec-rails and others. The results I pushed show a 30% difference on memory allocation on this specific example.
@JonRowe WDYT? I'm very much in favour of merging this.
This has been released in 3.12.7
Before this change in my test suite:
After this change in my test suite: