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

popmd/wasm: reduce size of binary #147

Open
1 task done
joshuasing opened this issue Jun 12, 2024 · 0 comments
Open
1 task done

popmd/wasm: reduce size of binary #147

joshuasing opened this issue Jun 12, 2024 · 0 comments
Labels
area: popm/wasm This is a change to the WASM popm (PoP Miner) area: popm This is a change to popm (PoP Miner) type: enhancement This improves existing functionality type: refactor This refactors existing functionality

Comments

@joshuasing
Copy link
Contributor

Confirmation

  • I have checked for similar issues.

Problem

The WASM PoP Miner binary is currently around 11M.
#146 reduces the size to 10M.

This not only requires a lot of bandwidth to distribute, but will also make things slow to load for end-users (especially those with slow download speeds).

Suggested solution

We should reduce the amount of external packages (especially large ones) that are used by service/popmd and web/popminer. This allows us to reduce the binary size as much as possible.

TinyGo would also help reduce the binary size, however it is currently a lot buggier than Go and contains several major memory leaks in their WASM implementation.

Additional Information

No response

@joshuasing joshuasing added type: refactor This refactors existing functionality type: enhancement This improves existing functionality area: popm This is a change to popm (PoP Miner) area: popm/wasm This is a change to the WASM popm (PoP Miner) labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: popm/wasm This is a change to the WASM popm (PoP Miner) area: popm This is a change to popm (PoP Miner) type: enhancement This improves existing functionality type: refactor This refactors existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant