You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating graphs, wily currently inlines the contents of plotly.min.js in HTML files, making their size around 3.4MB each. When creating a lot of graphs, this quickly adds up to a lot of space. For example, bulk creating graphs for every metric for every file that ever existed in wily's repository takes around 5GB in about 1500 HTML files.
Plotly has an option to create plotly.min.js once, in the same directory, and reference it from the HTML file. It's enabled by calling plotly.offline.plot with include_plotlyjs="directory". It reduces the size of the same 1500 graphs from 5GB to under 100MB.
I'm not sure adding this feature would be in scope for wily, but I have it working locally and could contribute a PR if it's desirable. It would also add a new CLI option for graph to enable this behavior.
The text was updated successfully, but these errors were encountered:
When creating graphs, wily currently inlines the contents of
plotly.min.js
in HTML files, making their size around 3.4MB each. When creating a lot of graphs, this quickly adds up to a lot of space. For example, bulk creating graphs for every metric for every file that ever existed in wily's repository takes around 5GB in about 1500 HTML files.Plotly has an option to create
plotly.min.js
once, in the same directory, and reference it from the HTML file. It's enabled by callingplotly.offline.plot
withinclude_plotlyjs="directory"
. It reduces the size of the same 1500 graphs from 5GB to under 100MB.I'm not sure adding this feature would be in scope for wily, but I have it working locally and could contribute a PR if it's desirable. It would also add a new CLI option for graph to enable this behavior.
The text was updated successfully, but these errors were encountered: