tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.09k stars 1.44k forks source link

Tdlib linkage is too slow on Windows 10 #2106

Closed fenixD3 closed 2 years ago

fenixD3 commented 2 years ago

Hello, I built Tdlib 1.8.4 via MSYS2 mingw64 on my Win 10, using build rules for Linux, thats ok. But compiling either my program or td_example.cpp is too slow (around 30 sec - 1 min). Why does it happens?

levlam commented 2 years ago

Do you build for Release without debug data?

fenixD3 commented 2 years ago

Do you build for Release without debug data?

It's unimportant :( Tdlib was built for Release, self project is built and for Debug, and for Release - the result is same.

The first cmake cmd for building Tdlib was cmake -DCMAKE_INSTALL_PREFIX="C:/tdlib-mingw" -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" ..

At the real Linux and Mac Os there isn't such problem

levlam commented 2 years ago

Release builds should link facter, but there is nothing we can do to improve link speed. It depends solely on the used toolchain.

fenixD3 commented 2 years ago

Release builds should link facter, but there is nothing we can do to improve link speed. It depends solely on the used toolchain.

Do you have may be some information about different toolchain and its linkage speed?

levlam commented 2 years ago

No.