Skip to content

[Python][Packaging] Strip unnecessary symbols from libarrow.so to reduce wheel package size #40749

Closed
@raulcd

Description

@raulcd

Describe the enhancement requested

There has been some effort in order to reduce pyarrow size and there are some issues opened in order to split pyarrow wheels in order to have pyarrow-core, pyarrow-all, etcetera.

There seems to be the possibility to strip unnecessary symbols via strip --discard-all. The libarrow.so file seems to be reduced from 61MB to 45 MB.

Another example:

-rwxrwxr-x 1 user group  49M Feb 22 18:55 libarrow.so.1600.0.0

$ strip --strip-unneeded libarrow.so.1600.0.0

-rwxrwxr-x 1 user group  33M Mar 12 15:27 libarrow.so.1600.0.0

This issue is to investigate the possibility of using strip and the possible disadvantages.

edited to fix typo

Component(s)

Packaging, Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions