Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve binary size #275

Open
kstrafe opened this issue Sep 18, 2019 · 1 comment
Open

Improve binary size #275

kstrafe opened this issue Sep 18, 2019 · 1 comment

Comments

@kstrafe
Copy link

kstrafe commented Sep 18, 2019

This library is currently the bloatiest part of my application according to cargo bloat --release:

0.1% 2.8% 123.4KiB wayland_sys wayland_sys::client::WaylandClient::open

123.4 KiB is a lot of data, this data is included when using gfx-hal. Is there any way to cut this down?

@elinorbgr
Copy link
Member

This is the code that finds libwayland-client.so, dlopens it, and loads all the necessary symbols from it: https://github.com/Smithay/wayland-rs/blob/master/wayland-sys/src/client.rs#L17

This code is generated using the macro provided by dlib. If you have any idea how to reduce this size, I'm honestly all ears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants