-
Notifications
You must be signed in to change notification settings - Fork 3k
Add persistent_term:put_new #9695
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
base: master
Are you sure you want to change the base?
Add persistent_term:put_new #9695
Conversation
CT Test Results 3 files 142 suites 49m 31s ⏱️ For more details on these failures, see this check. Results for commit 8686210. ♻️ 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 |
Instead of adding |
I think a You can define a rudimentary TLDR; I think we should add both functions. |
@jhogberg, I think this PR is review ready now. Sorry about the delay - I was busy the past 2 weeks... |
Note: we're not committing updates to other modules since they are not a part of this PR.
11dd76e
to
f67b975
Compare
Rebased on master to fix merge conflicts. |
@jhogberg, Any updates on this? Do you think you can squeeze it in OTP 28? Also, do you think |
As mentioned in the issue, the window for 28 was closed before you opened it. It can be included in 28.1 at the very earliest. The refactor I mentioned is coming along well. It's feature-complete and offers far better add/update/erase performance (so long as literal GC isn't triggered), but read performance on dynamic keys has taken a hit that is proving a bit annoying to get rid of (statically known keys are effectively free however). I'm confident it'll work out however, and am aiming for OTP 29.
I can't see why not, I'll add it to my refactored version. |
When do you think 28.1 will be released? |
This PR adds the persistent_term:put_new to conditionally add a key-value only if the key is new.
Closes #9681.
/cc @jhogberg.