Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass config($class) performance impact #131

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

pixobit
Copy link

@pixobit pixobit commented May 23, 2024

Description
Huge performance improvement.
config($class) seems to be an expensive process, and we don't really need it before falling back to the config property.
Note: Try creating a for loop of 1000 to get a settings value

pixobit added 2 commits May 23, 2024 11:47
Huge performance improvement.
config($class) seems to be an expensive process, and we don't really need it before falling back to the config property.
Note: Try creating a for loop of 1000 to get a settings value
@kenjis
Copy link
Member

kenjis commented May 23, 2024

Thank you for sending this PR!

We expect the following in all Pull Requests (PRs).

Important

We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works.

If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work on the framework than you do. Please make it as painless for your contributions to be included as possible.

See also the documentation in the main repository:
https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md

@kenjis
Copy link
Member

kenjis commented May 31, 2024

Do you need any help completing this PR?

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