Open baraline opened 1 month ago
@baraline Lazy loading(dynamic importing would be the way to solve the issue?
Also, how do I classify a certain module as heavy?
That should be the solution yes !
The idea would simply to import the distance profile / matrix profile functions matching the distance and speed ups paramater given during initialisation
Describe the issue
Currently, when selecting between distance or matrix profile options in
QuerySearch
orSeriesSearch
a dict is used with as values the functions to use. This requires to import all of them at the start of the module, while only one will be used.Suggest a potential alternative/fix
Make a function that only imports the necessary method at runtime.
Additional context
No response