Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Front] Compression #11

Closed
its-colby opened this issue Sep 18, 2024 · 4 comments
Closed

[Front] Compression #11

its-colby opened this issue Sep 18, 2024 · 4 comments
Labels
low priority mvp Minimum viable product

Comments

@its-colby
Copy link
Collaborator

its-colby commented Sep 18, 2024

  • add compression (on upload) and decompression (on download) (both on client-side) to all files to free some network bandwidth
  • ensure that the compression algorithm is listed within within the data somewhere, likely at the top section where the root node is. This way, we can smoothly transition to either not have compression algorithms or change the algorithm and still have everything backwards compatible.
@clostao
Copy link
Collaborator

clostao commented Sep 19, 2024

This means to compress on the client & decompress on the server?

@its-colby
Copy link
Collaborator Author

its-colby commented Sep 24, 2024

No, it means to compress and decompress on the client. The point would be to minimize the size of the file over the network whether it be from the client to the backend or from the backend to the blockchain. For example, if I upload file A, it would get compressed before being sent to backend. When I request it in the future, the backend would send the compressed version, and we would then decompress it on the client.

@its-colby its-colby added the mvp Minimum viable product label Sep 30, 2024
@its-colby its-colby added this to the Auto Drive MVP milestone Sep 30, 2024
@clostao
Copy link
Collaborator

clostao commented Oct 18, 2024

How this would work with folders? @its-colby

The best way I'd say is to compress files but the folder structure is maintained

@its-colby
Copy link
Collaborator Author

Folders will not be compressed, as the data of folders needs to be unaltered in order to appropriately point to the name of the files it contains. However, files within a folder, will of course be compressed. Essentially, anything in the DATA section of a node should be compressed. @clostao

@clostao clostao closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority mvp Minimum viable product
Projects
None yet
Development

No branches or pull requests

2 participants