apernet / hysteria

Hysteria is a powerful, lightning fast and censorship resistant proxy.
https://v2.hysteria.network/
MIT License
14.5k stars 1.62k forks source link

Executable size reduction #496

Open tobyxdd opened 1 year ago

tobyxdd commented 1 year ago

As we added more and more features and third-party library dependencies, hysteria executables are now over 20 MB - not very friendly for embedded devices. We should explore what we can do to trim things down.

Note that we should NOT use compression packers like UPX. Such packers only reduce the download size (which is insignificant in this day and age) and will worsen memory usage since they unpack the original code to memory at runtime.

maskedeken commented 1 year ago

will there be a rust version of hysteria?

tobyxdd commented 1 year ago

will there be a rust version of hysteria?

Could be

basicdreams commented 6 months ago

@tobyxdd I don't want to open a new issue, so I'll ask here: is there any progress? Perhaps it is possible to build an executable file with only the client part?