Comments (10)
Eventually the plan is to remove the jemalloc crate from the standard library in favor of "some crate on crates.io". I was planning on this crate becoming that "some crate" barring any other developments. In the meantime I don't think there's much to gain from active development in libstd itself, but improvements/benchmarks would be most welcome here!
from jemallocator.
Eventually the plan is to remove the jemalloc crate from the standard library in favor of "some crate on crates.io". I was planning on this crate becoming that "some crate" barring any other developments.
Which steps would be required to make this change, and what could I do to speed it up?
from jemallocator.
We'd need to stabilize rust-lang/rust#27389 for global allocators (already in FCP) and rust-lang/rust#32838 for defining an allocator (now in FCP). To help speed it up I will say the objection to continue to figure out the excess-related APIs on rust-lang/rust#32838 probably isn't helping the speed of stabilizing...
from jemallocator.
Is compiling on stable Rust a requirement for using jemallocator
instead of liballoc_jemalloc
in rustc ?
from jemallocator.
It's a requirement for switching the default allocator for binaries to alloc_system, but not for using jemallocator in rustc AFAIK.
from jemallocator.
It's a requirement for switching the default allocator for binaries to alloc_system,
How come?
from jemallocator.
It's not really reasonable to switch off of jemalloc providing people with the means to switch back.
from jemallocator.
Makes sense. I thought there might just be a compiler flag for selecting the allocator, but the allocator API is a much better option.
from jemallocator.
Update: (for future readers, since people who commented so far are already aware :))
#[global_allocator]
is now stable. rust-lang/rust#36963 tracks the removal of liballoc_jemalloc
, which might be blocked on switching rustc to jemallocator: rust-lang/rust#51038
from jemallocator.
Now making progress in: rust-lang/rust#55238
EDIT: progress was made!
from jemallocator.
Related Issues (20)
- Allocation memory change from 0 to some bytes at 4783 iteration
- jemalloc-ctl 0.3.3 fails to build HOT 2
- jemalloc-sys error : could not find native static library `jemalloc` HOT 1
- Add feature to query number of allocations
- Feature request: Add crate feature to support jemalloc's --without-export
- Feature request: support arena index loop per thread
- `update` functions are broken
- jemalloc-sys always builds jemalloc with stats enabled regardless of the `stats` cargo feature HOT 1
- jemalloc-sys 0.3.1 and 0.3.2 were published with a rep/ directory
- Cross compiling from Linux to Win fails with mingw on Ubuntu HOT 1
- Must this be included in main.rs for every crate or can be added in some common library?
- Jemalloc-sys fails to build within docker HOT 1
- update jemalloc version HOT 1
- Cannot build jemalloc on Ubuntu 20
- Add support for aarch64-apple-darwin HOT 3
- wsl 20.04: build failed in windows dir, but success in ubuntu's dir
- Maintenance status? HOT 3
- jemalloc 5.1 causes memory corruption with the `max_background_threads` option.
- Failed at building jemalloc 0.3.2 HOT 1
- Jemalloc crashes on M1 Macs, when targeting x86_64, instead of aarch64 HOT 1
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 jemallocator.