Giter VIP home page Giter VIP logo

Comments (5)

maxvgi avatar maxvgi commented on July 16, 2024 1

You can also compile the extension at a more powerfull workstation with similar configuration. That could be VPS with more ram/cpu or even your windows/mac desktop with docker.

And copy binaries to your target system after that.

from phptdlib.

yaroslavche avatar yaroslavche commented on July 16, 2024

Hi, @aminghaseminia .
I suggest to use CLang for this. As I know - at least 2GB RAM is required. With GCC - 4Gb minimun.
Compilation time depends on tdlib, not this ext.

you must install clang for this and run cmake with next env: CXX=clang++ CC=clang cmake ...

from phptdlib.

aminghaseminia avatar aminghaseminia commented on July 16, 2024

from phptdlib.

yaroslavche avatar yaroslavche commented on July 16, 2024

@aminghaseminia final binaries depends at many things. And this must be a lot of binaries. So - no, that's not possible at this moment. Also this extension builds for a few seconds if you have builded tdlib.

from phptdlib.

yaroslavche avatar yaroslavche commented on July 16, 2024

TDLib 1.4.0 includes a lot of compilation memory usage optimizations and a new script SplitSource.php, which can be used to split some source code files before building the library to reduce maximum RAM usage per file at the expense of increased build time. In our tests clang 6.0 with libc++ required less than 500 MB of RAM per file and GCC 4.9/6.3 used less than 1 GB of RAM per file.

tdlib/td#67 (comment)

from phptdlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.