Skip to content

Commit

Permalink
refactor(renterd): improve uploads performance
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Jan 19, 2025
1 parent 7301f76 commit e526e1c
Show file tree
Hide file tree
Showing 17 changed files with 365 additions and 195 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-days-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'renterd': minor
---

The application no longer lags when uploading thousands of files.
5 changes: 5 additions & 0 deletions .changeset/itchy-paws-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/react-core': minor
---

Added useThrottledStateMap.
5 changes: 5 additions & 0 deletions .changeset/light-ravens-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siafoundation/react-core': minor
---

Added `throttle`, often useful for mutation callbacks.
3 changes: 2 additions & 1 deletion apps/renterd/contexts/filesManager/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export type ExplorerMode = 'directory' | 'flat'
export type UploadStatus = 'queued' | 'uploading' | 'processing'

export type ObjectUploadData = ObjectData & {
upload?: MultipartUpload
multipartId?: string
multipartUpload?: MultipartUpload
uploadStatus: UploadStatus
uploadAbort?: () => Promise<void>
uploadFile?: File
Expand Down
Loading

0 comments on commit e526e1c

Please sign in to comment.