apernet / hysteria

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

Executable size reduction #496

Open tobyxdd opened 2 years ago

tobyxdd commented 2 years 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 2 years ago

will there be a rust version of hysteria?

tobyxdd commented 2 years ago

will there be a rust version of hysteria?

Could be

basicdreams commented 9 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?