Comments (5)
Please explain what stripping means, what are the benefits, and how I can go about doing it within the context of setuptools
.
from fastnumbers.
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.
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.
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.
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.
Closing this, because this doesn't appear to be easy to fix for individual projects.
from fastnumbers.
Related Issues (20)
- Request for an option to not ignore underscores in numeric literals HOT 10
- Update documentation and metadata
- Integrate with numpy and pandas HOT 9
- Unit test numeric issues on 32bit arm CPU HOT 3
- Speed not better than Python's int/float HOT 6
- Make most options keyword-only
- Rename "key" option to "on_fail"
- [BUG] FastNumbers can crash with a SystemError due to returning NULL without setting an exception HOT 5
- Fastest way to check is and object is int or float in one pass HOT 14
- Proposal: change behavior of isfloat with respect to treatment of float("nan") HOT 19
- Proposal: change behavior of isfloat function with respect to treatment of strings containing integers HOT 3
- Proposal: Do not raise an exception on None HOT 5
- python3.9 compatibility HOT 5
- Re-write using C++ and pybind11
- Add support to release Linux aarch64 wheels HOT 1
- Broken 3.2.0 installation
- Missing -lm breaks build on armv7hl
- Error: <built-in function isint/isfloat> returned NULL without setting an error HOT 2
- Use fast C++ methods like std::from_chars or fast_float HOT 1
- Improve performance with METH_FASTCALL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastnumbers.