-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the check for a relative path
This isn't a _huge_ perf boost, but every little helps :^) In the old Pathname method, this if was useful because it was quicker to skip files that were already resolved, assuming there was a mix of relative and absolute paths With File.realpath, however, it's quicker to just run the function as it does nothing if the path is already resolved. This is roughtly equal in terms of performance to using the new File.absolute_path? method (they are so close in benchmarks that it's essentially noise)
- Loading branch information
1 parent
0128907
commit f14f39a
Showing
3 changed files
with
6 additions
and
10 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