-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Doesn't compile with 4GB of RAM #67
Comments
C++ compilers need enormous amount of resources for compilation nowadays. We have done many source code optimizations to decrease memory consumption and compilation time, but not so much depends on us here. The memory consumption grows very fast even on very simple code. Between, what compiler/CMake version you are using? |
@levlam I use g++, will try clang. Then I have deployed VM with 6GB and watched RAM use. And confirmed that when ContactsManager.cpp compiling it uses nearly 4270 MB on Debian 9 with g++ 6.3. I didn't guess that it so gluttonous process! |
You need to try ninja 😉
|
TDLib 1.4.0 includes a lot of compilation memory usage optimizations and a new script |
Can't compile it on small VPS with 1GB. But it compiles well with 6GB and 8GB. Is it really nesessary to have at least 6GB of RAM for compiling TDLib?
The text was updated successfully, but these errors were encountered: