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
Use JSON instead of pickle for tld data #81
Comments
This is a good idea. |
I wasn't sure if performance would degrade, looks like it would actually improve. Haha.
|
👍 This could be the needle to finally cut a 2.0 release. If this gets done, can abandon |
Awesome, happy to see you guys liked the idea |
Good idea. :-) |
@mauricioabreu by all means! I started a 2.0 branch. Target any work there. Then you can run free with this issue, with less worry about backwards compatibility. |
Could not it be a plain text file? |
I mean that JSON is good for structured data, no? Python would support this by reading lines as a normal file. What do you think @andresriancho ? |
I usually use JSON even for very simple data because it allows me to add more "structure" to it later (if required by the next versions of the software) without rewriting the code; but a plain text file sounds good also. |
Good! Thanks for your opinion @andresriancho I will start it using plain text. :) |
I would start it with JSON for to be more forward thinking, as mentioned. As a concrete use case, metadata about each suffix will be required for #66, i.e. whether it's a private suffix or not. Teasing this from JSON is easy. Teasing from plain text is less fun. |
@john-kurkowski okay! I am happy with these two alternatives. :-) |
This weekend, I'll use #91 to work toward a 2.0 release, to close this. |
Closed via #92. |
.tld_set_snapshot and .tld_set use pickle to store the TLD information. While this is perfectly fine in most cases it brings the following issues:
The text was updated successfully, but these errors were encountered: