Skip to content

perf: optimize sync engine for large file batches + less UI junk - #64

Open
chedy256 wants to merge 4 commits into
ClassHubTeam:mainfrom
chedy256:performance
Open

perf: optimize sync engine for large file batches + less UI junk#64
chedy256 wants to merge 4 commits into
ClassHubTeam:mainfrom
chedy256:performance

Conversation

@chedy256

Copy link
Copy Markdown
Contributor
  • Replace sequential downloads with parallel Isolate-based workers
  • Cache parsed JSON responses to avoid redundant CPU work
  • Reduce UI jank during sync by throttling progress updates
  • Add batch size tuning for mobile

chedy256 added 4 commits July 15, 2026 01:27
… on flutter version 3.44) and adjust file picker settings (as allow multiple is deprecated and became useless)
- Added main_screen_entity_menu.dart for entity menu actions including rename, delete, sync, share, and properties.
- Introduced main_screen_inside_folder.dart to manage folder contents, file selection, and actions like upload and create folder.
- Created main_screen_widgets.dart for reusable widgets such as FAB options, drawer items, and synced FAB.
- Enhanced user experience with file sharing, syncing, and improved UI for file properties.
Explicit return after await Isolate.run() to satisfy non-nullable
Future<Map<String, dynamic>> return type.

fix(sync_engine): make UnimplementedError async in test mocks

Change FailingHttpClient.read() and readBytes() from sync throw to
async => throw to match real HTTP client behavior.

fix(sync_engine): fix tmp.delete() catchError type mismatch

Replace .catchError((_) => tmp) with nested try/catch to discard
errors without returning File.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant