Skip to content

Commit 36d4cb9

Browse files
committed
feat: implement chunked storage for IndexedDB to optimize memory usage
- Replace single-file storage with chunk-based architecture - Add FileMetadata store for tracking file information - Implement DataChunks store with composite key [filename, chunkIndex] - Update write operations to append only to relevant chunks - Maintain backward compatibility with existing API - Improve performance for 500Hz continuous data streams - Reduce memory usage from O(n) to O(1) for append operations BREAKING CHANGE: Database version upgraded to 3. Existing data will be migrated automatically.
1 parent 0eac4b7 commit 36d4cb9

2 files changed

Lines changed: 290 additions & 104 deletions

File tree

src/app/npg-lite/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ const NPG_Ble = () => {
18591859
<p className="text-sm">
18601860
Update firmware using <a
18611861
className="font-semibold text-blue-600 hover:underline"
1862-
href="https://github.com/upsidedownlabs/NPG-Lite-Arduino-Firmware"
1862+
href="https://upsidedownlabs.github.io/NPG-Lite-Flasher-Web"
18631863
target="_blank"
18641864
rel="noopener noreferrer"
18651865
>

0 commit comments

Comments
 (0)