MagicStack / MagicStack/immutables

Adding support for shared_memory allocator for multiprocessing.

Open
#107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.2k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

How feasible is it modifying `static MapObject * map_alloc(void)` (and the `...dealloc` functions) to use a custom allocator, if buffer parameter is passed to constructor, so a multiprocessing.shared_memory.SharedMemory().buf can be used, similarly to Numpy?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the static map_alloc and dealloc functions named in the issue, then trace the constructor path and its buffer handling. Compare the proposed SharedMemory.buf use with the existing Numpy approach, including the C extension boundary. Done should be a clearly scoped design and feasibility result with any required tests identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.