ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

Improve the performance for record & replay #984

Open ono-max opened 1 year ago

ono-max commented 1 year ago

Here is a performance comparison.

  Execution Time(s) Ratio to existing implementation
Existing implementation 73.743 1.0
Current Proposal 46.616 1.58

Script for measuring performance

def index
    binding.break # <- Start a program here
    1_000.times {
      respond_to do |format|
        format.html # index.html.erb
      end
    }
  end #<- Pause a program here
ko1 commented 1 year ago

Could you explain your idea?