Skip to content

Commit 64eaad5

Browse files
committed
refactor(data): Improve robustness and performance of storage
Refactors the `mmap_storage` module to improve reliability, thread-safety, and performance. - Fixes a critical bug in `TimeSeriesStorage` that caused data to be overwritten on initialization. - Implements a binary search for `read_window` to significantly improve performance on large datasets. - Adds `RLock` to ensure thread-safe operations on storage classes. - Replaces `print` statements with `logging` for better error handling. - Fixes a file corruption bug in `_resize_file`. - Improves metadata handling to be more robust. In `event_bus`, updates `asyncio.get_event_loop()` to the modern `asyncio.get_running_loop().
1 parent 19760e5 commit 64eaad5

File tree

2 files changed

+296
-220
lines changed

2 files changed

+296
-220
lines changed

0 commit comments

Comments
 (0)