Add option to limit expired moments
See original GitHub issueAdd a boolean configuration setting to limit the number of expired moments kept. Boolean to keep users from setting stupid values.
This will keep very long running games from slowing down and reduce save bloat at the cost of breaking the visited family of functions.
Tasks
- Add the
Config.history.limitExpired
boolean property (default:false
). When enabled, expired moments will be limited to some TBD amount—probably the default max states or twice that; i.e.,40
or80
. - Make the visited family of functions throw with an appropriate error message when the above setting is enabled.
- Loudly warn, in its documentation, that enabling the setting will break the visited family of functions and that it should not be changed mid-project, since it drops history.
Maybe
- Make
State.expired
immutable. - Add warnings about the setting to the documentation of the visited family of functions?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
The Importance of Time Value in Options Trading - Investopedia
If we compare the prices of each option at a certain moment in time, each with different expiration dates (February, March, and April),...
Read more >Lifecycle configuration elements - AWS Documentation
One or more transition or expiration actions with a date or a time period in the object's lifetime when you want Amazon S3...
Read more >How To Remove Expired Subscriptions On iPhone - YouTube
Let's remove any of your inactive or expired app subscriptions on your app store so no one can see them on your iPhone....
Read more >Survey Options - Qualtrics
Quotas: Create and monitor quotas on your surveys. Translations: Translate your survey into multiple languages, allowing respondents to choose which language to ...
Read more >Use Sharing Suggestions in Photos - Apple Support
If you want to create a space for ongoing collaborative photo ... send you photos capturing angles and moments that you might have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think I’m just going to delete the
#sugarcube
channel and forget this shitshow ever happened. 😏You didn’t need to do that. As I said, I’m not blaming anyone but myself for this fiasco.
I do appreciate the effort though.