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

Make min_year and max_year configurable #141

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

Conversation

alanj853
Copy link

@alanj853 alanj853 commented Feb 9, 2024

For systems with limited memory resources, they may not want all of the time data created by default as it increases the size of the ETS table

For systems with limited memory resources, they may not want all of the time data created by default as it increases the size of the ETS table
Make min_year and max_year configurable
size of the ets table created by `:tzdata`.

```elixir
config :tzdata, :max_year, 2030

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isnt' that a bit too close for comfort ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? Bearing in mind that this is just an example in the README, it is not in the code.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah missed the README part, nevermind

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is it actually configured to on the system ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"44 years + the current year"

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.

None yet

3 participants