[Refactor] Avoid memory leaks using caching
As pointed by Ruff in https://docs.astral.sh/ruff/rules/cached-instance-method/#why-is-this-bad, using the functools.lru_cache
and functools.cache
decorators on methods can lead to memory leaks, as the global cache will retain a reference to the instance, preventing it from being garbage collected.
We can fix this issue by refactoring the get_session_start_time()
method in src/calimag/parsers.py
as a standalone function.