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

skip application_controller on set_env if persistent option is not set #8227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheGeorge
Copy link
Contributor

Currently, we do a synchronous call to the application_controller on every set_env. This is done, to conditionally store the application environment values in the application_controller gen_server in case the persistent option is set.

In most cases we can avoid calling into the gen_server, and write the value into the ac_tab ETS table directly. This avoids unnecessarily blocking the gen_server when the persistent option is not set.

Copy link
Contributor

github-actions bot commented Mar 6, 2024

CT Test Results

    2 files     67 suites   1h 3m 31s ⏱️
1 527 tests 1 284 ✅ 243 💤 0 ❌
1 728 runs  1 437 ✅ 291 💤 0 ❌

Results for commit 1029d23.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Mar 11, 2024
@jhogberg jhogberg self-assigned this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:VM Assigned to OTP team VM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants