-
Notifications
You must be signed in to change notification settings - Fork 238
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
Environment::set() is slow #1270
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
In our app we (ab)use
Environment::set()
when bootstrapping to set all of our site's configuration. We set some defaults, and then depending on our environment (prod/test/dev) we overwrite some of those.I was just trying to improve my app's performance and I've found that
Environment::set()
usesSet::merge()
which is kinda slow.Sometimes you want to set some configuration overwriting the existing values. Perhaps I'm misusing this class.
Example:
The text was updated successfully, but these errors were encountered: