Currently, I am developing a Python program that parses a file and records the changes made to it. However, I am facing a dilemma regarding the format in which this information should be saved for easy usage with JavaScript on the local machine. My objective is to create offline HTML files that display the log in a structured list as well as in graph form.
Although JSON is efficient, I am concerned about the potential heaviness of repeatedly writing the entire JSON file.
The traditional method of appending log data to the end of a file is straightforward, but I am unsure about the best approach for accessing this data using JavaScript.
The maximum size of the log file is expected to be around ten thousand rows.