Skip to content

[RFC] Custom Allocator #5526

Open
Open
@arihant2math

Description

@arihant2math

Summary

Consider the use of a faster allocator such jemalloc or mimalloc

Detailed Explanation

CPython has a custom allocator which is optimized for allocating small objects (PyMalloc), which helps a lot with performance. mimalloc specifically is known to be comparatively fast, and compared to the rest of the executable shouldn't affect binary size too much. This would improve speed when allocating large amounts of heap or just in general.

Drawbacks, Rationale, and Alternatives

An issue could be a larger binary size.

Unresolved Questions

  • Which allocator works best for performance (benchmarking this could probably be a good idea)

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRequest for comments

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy