Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
forcing a nil (no) backtrace with Java APIs #3488
like to use the constructor for optional "lightweight" exception raising such as jruby/jruby-openssl#55
p.s. I'd like to consider backporting these changes to jruby-1_7 if there's no objections to that.
the changes also slightly improved performance (when
require 'hitimes' def measure(count = 1_000) Hitimes::Interval.measure do count.times do begin raise RuntimeError.new rescue RuntimeError => e puts e.message if false end end end end print "warmup: " puts measure(200_000).inspect print "......: " puts measure(500_000).inspect