Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

[WIP] perf: reduce bundle size #1795

Closed
wants to merge 16 commits into from
Closed

[WIP] perf: reduce bundle size #1795

wants to merge 16 commits into from

Conversation

hugomrdias
Copy link
Member

@hugomrdias hugomrdias commented Dec 24, 2018

Before/After:
modules 1549 946 -38.92%
unminified 8 617 735 3 629 020 -57.88893485%
minified 3 007 790 1 439 307 -52.14735736%
minified+gzip 773.59 386.56 -50.03037785%

Analyzer
https://bundle-size.netlify.com/ipfs-before.html

screenshot 2018-12-24 at 12 16 39

https://bundle-size.netlify.com/ipfs-after.html

screenshot 2018-12-24 at 12 17 05

@ghost ghost assigned hugomrdias Dec 24, 2018
@ghost ghost added the status/in-progress In progress label Dec 24, 2018
@alanshaw alanshaw changed the title Fix/bundle size perf: bundle size Jan 2, 2019
@alanshaw alanshaw changed the title perf: bundle size perf: reduce bundle size Jan 15, 2019
@alanshaw alanshaw changed the title perf: reduce bundle size [WIP] perf: reduce bundle size Jan 18, 2019
Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some pretty impressive size reductions here, good work! Just need to remove all the branch versions from package.json and resolve the conflicts.

I see you swapped out joi for superstruct to validate the config - is this something we should be doing throughout the project?

@@ -115,7 +115,7 @@ module.exports = (http) => {
})
})

describe('ls', () => {
describe.only('ls', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove pls

@alanshaw
Copy link
Member

@hugomrdias are you still tracking this? Can you list out the dependent PRs in the description above so I can help you push them along?

@hugomrdias
Copy link
Member Author

waiting on mplex we are getting there just a little bit longer

src/http/api/resources/config.js Outdated Show resolved Hide resolved
src/http/api/resources/config.js Outdated Show resolved Hide resolved
return mergeOptions({
blockService: blockService
}, options)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until we have multiple browser builds we need to include bitcoin, ethereum, git and zcash.

alanshaw and others added 4 commits March 19, 2019 10:23
Co-Authored-By: hugomrdias <mail@hugodias.me>
Co-Authored-By: hugomrdias <mail@hugodias.me>
@alanshaw
Copy link
Member

alanshaw commented Apr 4, 2019

Shall we close this one @hugomrdias?

@hugomrdias hugomrdias closed this Apr 8, 2019
@hugomrdias hugomrdias deleted the fix/bundle-size branch April 8, 2019 16:04
@ghost ghost removed the status/in-progress In progress label Apr 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants