Open godfryd opened 8 months ago
This addresses #67 issue.
Hi @godfryd - we need to ensure that the package allows vsdx files to be edited, but I like the concept of caching the shapes to avoid repeated parsing. I am sure there is a way to extend this to support both caching and editing.
I have just added some additiional tests to master branch that will fail if the updated shapes are cached
This is quite naive fix for performance issues. It caches some instances so they are not repeatedly parsed. It works for cases when a file is only loaded and read. Probably it does not work well when the file is modified via this lib - I didn't try that. Any tips how to improve that appreciated.