GithubHelp home page GithubHelp logo

Comments (5)

SethMMorton avatar SethMMorton commented on May 27, 2024

Please explain what stripping means, what are the benefits, and how I can go about doing it within the context of setuptools.

from fastnumbers.

SethMMorton avatar SethMMorton commented on May 27, 2024

In the link below, Donald Stufft (the lead maintainer of PyPA and pip) states that they chose not to strip binaries installed with pip because it is not universally safe.

pypa/pip#3938 (comment)

For the sake of argument, let us ignore that for a moment. Let us suppose that I decide to put in the work to a) figure out all the compiler flags for all the various supported compilers and all versions of those compilers to strip at build time, and then b) get it to work in CI (and hope that correlates to working on people's machines as well), will you be willing to field all issues created due to stripping the extra symbols, including when people try to run the code through a debugger and finding they cannot because debugging symbols were stripped from the binary?

from fastnumbers.

yurivict avatar yurivict commented on May 27, 2024

Stripping means removing ELF sections that aren't needed for it to run.

It is accomplished by running the 'strip' command: https://linux.die.net/man/1/strip

The benefits are - reduced size of installed packages on disk. Marginally faster runtimes, because file sizes are smaller, no need to go through or skip unneeded sections.

from fastnumbers.

yurivict avatar yurivict commented on May 27, 2024

Many python projects don't strip. Maybe this is just not easy in python, I'm not sure. But most GNU make-based projects, and cmake-based projects do strip.

from fastnumbers.

yurivict avatar yurivict commented on May 27, 2024

Closing this, because this doesn't appear to be easy to fix for individual projects.

from fastnumbers.

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.