I’m not sure if it’s easier than a full rewrite, but another option is to write a C Python module to do the slow piece (maybe write a function to do the metadata processing in C?):
https://docs.python.org/3/extending/extending.html
Or using cython https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
I’m not sure if it’s easier than a full rewrite, but another option is to write a C Python module to do the slow piece (maybe write a function to do the metadata processing in C?):
https://docs.python.org/3/extending/extending.html
Or using cython https://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html