cozy / cozy-banks

A Banks Aggregator on Cozy
https://cozy.io
GNU Affero General Public License v3.0
59 stars 26 forks source link

[meta] Perf build #926

Open ptbrowne opened 5 years ago

ptbrowne commented 5 years ago

Baseline: 2421ko

image image image

First PR perf : https://github.com/cozy/cozy-banks/pull/907

Possible candidates for size reduction:

ptbrowne commented 5 years ago

From nono

https://github.com/cozy/cozy-banks/pull/907#issuecomment-464091565

Some other ideas:

* remove the Fetch polyfill (it is no longer needed for the browsers we support)

* use lazy loading for the graphs libs

* redux-raven-middleware and raven.js seems to load the same files: are both necessary?

* try svgo on icon-collect-account.svg

Cozy Authentication build ? Why is it so big ?

It embeds 65ko of CSS from cozy-ui, and some stylus things

JF-Cozy commented 3 years ago

L'idée serait d'avoir une approche loi de Pareto et d'agir sur les plus grosses libs plutôt que de faire de multiple optimisations un peu partout. 20% d'action pour 80% d'efficacité.

Les libs les plus grosses (hors lib cozy - voir plus bas l'analyse du poids des libs) sont chart, d3, moment et mui.

Préconisations :

Analyse du poids des libs avec BundlePhobia :

image
JF-Cozy commented 3 years ago

Webpack Bundle Analyzer

(en rouge les libs cozy)

image image

Analyse :

Libs :

Hors lib cozy, les plus grosses sont (en poids minifié) :

Côté cozy :

Autre :

Préconisations :