sjDan2003 / Cookbook

0 stars 0 forks source link

Optimize saved recipe information #4

Open sjDan2003 opened 5 years ago

sjDan2003 commented 5 years ago

The JSON data from websites contains a lot of information, but most of that information is not needed for this program. When the user is importing hundreds of recipes, this information could lead to a very large JSON file. This could also slow down the program by having to store all of this information in the user's RAM, and could eventually lead to out of memory errors.

On import, only save the relevant information to reduce the file size and reduce the app's load on the system.