Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Allow a caller to pass a skip_frames arg to first_non_rspec_line. #155

Merged
merged 1 commit into from
Jan 13, 2015

Conversation

myronmarston
Copy link
Member

This can speed things up in some situations. I'm planning to use this as part of my on-going perf improvements for rspec/rspec-core#1749.

/cc @xaviershay @JonRowe

This can speed things up in some situations.
@xaviershay
Copy link
Member

LGTM, nice comment

JonRowe added a commit that referenced this pull request Jan 13, 2015
Allow a caller to pass a skip_frames arg to `first_non_rspec_line`.
@JonRowe JonRowe merged commit d8ea309 into master Jan 13, 2015
@JonRowe JonRowe deleted the add-skip-frames-to-caller-filter branch January 13, 2015 22:17
@JonRowe
Copy link
Member

JonRowe commented Jan 13, 2015

👍

myronmarston added a commit to rspec/rspec-core that referenced this pull request Jan 14, 2015
The call to `RSpec::CallerFilter.first_non_rspec_line`
took most of the time. I originally planned to leverage
rspec/rspec-support#155 but realized we could avoid
calling that entirely by re-using the location from
the group’s metadata.

I re-ran all the benchmarks and updated them. They
look much, much better.
myronmarston added a commit to rspec/rspec-core that referenced this pull request Jan 15, 2015
The call to `RSpec::CallerFilter.first_non_rspec_line`
took most of the time. I originally planned to leverage
rspec/rspec-support#155 but realized we could avoid
calling that entirely by re-using the location from
the group’s metadata.

I re-ran all the benchmarks and updated them. They
look much, much better.
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
The call to `RSpec::CallerFilter.first_non_rspec_line`
took most of the time. I originally planned to leverage
rspec/rspec-support#155 but realized we could avoid
calling that entirely by re-using the location from
the group’s metadata.

I re-ran all the benchmarks and updated them. They
look much, much better.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants