Giter Club home page Giter Club logo

Comments (10)

alexcrichton avatar alexcrichton commented on September 23, 2024

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.

gnzlbg avatar gnzlbg commented on September 23, 2024

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.

alexcrichton avatar alexcrichton commented on September 23, 2024

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.

gnzlbg avatar gnzlbg commented on September 23, 2024

Is compiling on stable Rust a requirement for using jemallocator instead of liballoc_jemalloc in rustc ?

from jemallocator.

sfackler avatar sfackler commented on September 23, 2024

It's a requirement for switching the default allocator for binaries to alloc_system, but not for using jemallocator in rustc AFAIK.

from jemallocator.

gnzlbg avatar gnzlbg commented on September 23, 2024

It's a requirement for switching the default allocator for binaries to alloc_system,

How come?

from jemallocator.

sfackler avatar sfackler commented on September 23, 2024

It's not really reasonable to switch off of jemalloc providing people with the means to switch back.

from jemallocator.

gnzlbg avatar gnzlbg commented on September 23, 2024

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.

SimonSapin avatar SimonSapin commented on September 23, 2024

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.

gnzlbg avatar gnzlbg commented on September 23, 2024

Now making progress in: rust-lang/rust#55238

EDIT: progress was made!

from jemallocator.

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.