Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perf: simplify calculation of location
- caller is only used to determine file and line number as metadata is initialized. There is no need to store it. - Also, the previous commit reduces the need for analysis of the caller stack. We therefore don't need to sling it around within the rspec codebase. - Running the following 5000 times took 2.77 seconds before these last two commits, 1:58 after: describe "something" do it "does something" do 1.should eq(1) end end Please enter the commit message for your changes. Lines starting
- Loading branch information
1 parent
9c6b6f7
commit f78ff61
Showing
5 changed files
with
12 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters