• [^] # Re: «Il concurrence donc directement les langages C et C++.»

    Posté par (site web personnel, Mastodon) . En réponse à la dépêche Rust 1.0, entrée dans la période stable. Évalué à 3.

    C'est ce que j'ai longtemps cru moi aussi.

    http://linux.die.net/man/2/mmap

    MAP_ANONYMOUS
    The mapping is not backed by any file; its contents are initialized to zero. The fd and offset arguments are ignored; however, some implementations require fd to be -1 if MAP_ANONYMOUS (or MAP_ANON) is specified, and portable applications should ensure this.

    http://linux.die.net/man/3/jemalloc

    Traditionally, allocators have used sbrk(2) to obtain memory, which is suboptimal for several reasons, including race conditions, increased fragmentation, and artificial limitations on maximum usable memory. If --enable-dss is specified during configuration, this allocator uses both mmap(2) and sbrk(2), in that order of preference; otherwise only mmap(2) is used.

    Je te conseille aussi de lire les vidéos de autour de Jemalloc qui sont très instructives.