MetaMask / MetaMask/metamask-extension
Reduce size of lib p2p and its related modules
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
lib-p2p is and its related modules like multihashes and multi-stream select are increasing bundle size significantly
https://output.circle-artifacts.com/output/job/0b87725e-d9fa-4b1e-87c8-209ba5bb939a/artifacts/0/build-artifacts/source-map-explorer/background-5.html
https://output.circle-artifacts.com/output/job/0b87725e-d9fa-4b1e-87c8-209ba5bb939a/artifacts/0/build-artifacts/source-map-explorer/background-6.html
lib-p2p can possibly be excluded from bundle.
Contributor guide
Research direction
Start with the two linked source-map-explorer reports for background-5.html and background-6.html to confirm the contribution from lib-p2p, multihashes, and multi-stream select. Trace how these modules enter the extension bundle and determine whether lib-p2p can be excluded. Done means the affected bundle size is reduced and the reports confirm the intended modules are no longer included.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, performance
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100