platform icon indicating copy to clipboard operation
platform copied to clipboard

bug(dpp): WASM DPP bundle doubled in size

Open pshenmic opened this issue 2 years ago • 3 comments

Expected Behavior

WASM DPP shouldn't weight too much to be able to easily include in Browser & Mobile environments.

Current Behavior

WASM DPP JS bundle recently raised in size at least twice from 12 MB to 30 MB, and including all sourcemaps the final Dash SDK bundle raised to unbelievable 72 MB. This is not acceptable for a browser environment as it is drastically increases page load times.

image

Possible Solution

Revise changes between 0.25.13 and 0.25.15 releases, and make more optimization and cut unncessary stuff. Also, might be a good idea to disable wasm dpp source maps

Context

That happened on 0.25.15 release, because 0.25.13 JS bundle weights about twice less.

pshenmic avatar Dec 08 '23 05:12 pshenmic

I'm seeing 9.1M which is just mind-blowingly HUGE.

What's going on here? What does this thing even do?

Why not use the modern, native js Dash Incubator libraries? Is there something that they don't support yet that has to be included? If so, how about we just fix the Dash Incubator libs to have the necessary functionality?

https://github.com/dashhive/dash-tools

coolaj86 avatar Feb 09 '24 23:02 coolaj86

@coolaj86, I spoke about this size issue in our last Incubator quarterly call. Our plan is to add Dash Platform support in our tools, so that will be an issue for our repos. DCG can feel free to close this issue if they don't see an issue in their tools.

riongull avatar Feb 10 '24 02:02 riongull

Does it cache? If so, it is not such a big deal.

kxcd avatar Feb 11 '24 13:02 kxcd

We are going to rebuild SDK and binding soon so I don't think this problem will be actual. Please reopen otherwise.

shumkov avatar Sep 23 '24 16:09 shumkov