Skip to content

[DISCUSSION] Reduce the DataFusion WASM size #16554

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

I have heard annecedotally a few times from different people that the size of the compiled WASM file for DataFusion is large (10MB?). This large size slows down page load times for webpages that use the DataFusion WASM.

I have heard this concern from @emilk @timsaucer @XiangpengHao at least Maybe @jonmmease or @waynexia too (but I can't remember for sure)

Describe the solution you'd like

I would like some way to reduce the size of the final WASM package (perhaps optionally)

Describe alternatives you've considered

Today when you build DataFusion it comes with many features (like support for all compression libraries for Parquet and functions specialized for multiple different types of Arrow arrays -- StringArray, and LargeStringArray and StringViewArray for example

One thing we could consider is feature flagging out many of the extra copies of code for different data formats somehow.

I think the challenge will be managing the complexity that this adds to build/ runtime.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions