-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Cache outside of the CountryInfo object #40
Comments
Just wanted to understand what you are suggesting. Move data loading part to global cached function called from init and loading all the files regardless of the country being searched or load only the file for which search is being performed? |
I resorted to the following to only load the data once:
I'd do a PR instead of monkey-patching, but this repo seems pretty dead. @porimol Are you still maintaining this? |
Let me know if I can be of any help here. |
@atifiu Your status here is a bit unclear: do you have write access to this repo or are you offering to do the PR? |
I am offering PR. If we want to activated this repo. |
Currently, all files are loaded every time a CountryInfo object is created. That's inefficient and should be changed.
Easiest would probably be to move the data loading part to a cached global function
The text was updated successfully, but these errors were encountered: