Skip to content

Use require_relative in the Regexp::Parser codebase#90

Merged
jaynetics merged 1 commit intoammar:masterfrom
koic:use_require_relative
May 11, 2024
Merged

Use require_relative in the Regexp::Parser codebase#90
jaynetics merged 1 commit intoammar:masterfrom
koic:use_require_relative

Conversation

@koic
Copy link
Contributor

@koic koic commented May 6, 2024

If there are many searches in the $LOAD_PATH in the user environment, require will perform unnecessary searches that are not needed. In contrast, require_relative is efficient because it uses a relative path.

If there are many searches in the `$LOAD_PATH` in the user environment,
require will perform unnecessary searches that are not needed.
In contrast, `require_relative` is efficient because it uses a relative path.
@jaynetics jaynetics merged commit 0ec8b3e into ammar:master May 11, 2024
@jaynetics
Copy link
Collaborator

@koic thank you very much! i've just released v2.9.1 with your improvement.

@koic koic deleted the use_require_relative branch May 11, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants