Closed juergenhoetzel closed 2 years ago
Adding a progress reporter sounds good, thanks for the idea.
As to the JSON parsing, Emacs can be compiled without libjansson, in which case json-parse-buffer
is not defined. Sadly, we'd have to check and define a fallback behavior manually if we want to use the native JSON parsing. I think this not worth the trouble in this particular application.
I've added a progress reporter in https://github.com/astoff/devdocs.el/commit/d5d0cfbfbcd037ef8f84f41b2adc3f5a23baa11f as you suggested here.
As is mentioned, the better JSON parser can be used only if a better compatibility layer is introduced somewhere else (maybe we can start using the compat library in the future).
Writing a huge amount of HTML files can take a while to finish. Inform the user about the progress so the user can estimate remaining time and clearly see that Emacs is busy working, not hung.
Speed Improvement