techyCoder81 / techyCoder81/hdr-launcher-react

a new backend call should be made that hashes many files at once

Open
#33 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
16
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Currently, for verify, we send to the backend one file at a time, and get back its hash, and compare it to what it should be. This results in a lot of back and forth traffic and processing that has resulted in a significantly slower Verify than in the old launcher.

Therefore, a new backend call should be made that passes a tree of files to the backend to get md5 for, and then returns the checksums of those files to the frontend for comparison. This should result in less back-and-forth overall, and hopefully much better performance. This will require using DirTree to communicate data, since that will result in significantly less text being transmitted in each direction than providing a full file path for every single file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing verify flow that sends one file at a time and compare its frontend and backend boundaries. Review how DirTree is represented, then define the new call around a tree of files and returned checksums. Done means verify can compare the returned MD5 values with less back-and-forth traffic.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
backend, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.