Skip to main content

Zero-input-serialization, GIL-free parallel map-reduce.

Project description

scissiparity 🦠

Zero-input-serialization, GIL-free parallel map-reduce.

Standard Python multiprocessing is a nightmare of PicklingErrors, explicit worker pools, and massive memory duplication because it forces you to serialize data in both directions. scissiparity solves this through asymmetric serialization: it natively clones the Python interpreter's memory space via OS-level Copy-On-Write to read inputs for free, and only serializes the strictly necessary outputs.

uv add scissiparity

The Difference

Concept multiprocessing.Pool scissiparity
Input Propagation Serializes/Pickles inputs across IPC queues. Zero-serialization. Reads parent memory natively via os.fork().
Output Extraction Pickles results via IPC queues. Pickles results via native os.pipe() (dill).
Memory Overhead Duplicates all inputs. Zero-copy for inputs. OS-level Copy-On-Write mechanics.
Configuration Requires manual chunking and worker sizing. Zero config. Inferred purely from OS CPU topography.

Core Mechanics

  • Asymmetric Serialization (Copy-On-Write): Because it leverages standard UNIX os.fork(), child processes can read the parent's massive in-memory variables instantly. You can process objects that are entirely unpicklable. Serialization (dill) is invoked only to pipe the final yielded results back to the parent.
  • Exception Teleportation: If a child process raises an Exception, the error is natively serialized, piped back to the parent, and re-raised in the main thread. If one child dies, the workflow aborts gracefully. Zero "ghost compute."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scissiparity-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scissiparity-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file scissiparity-0.1.0.tar.gz.

File metadata

  • Download URL: scissiparity-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scissiparity-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d0208720890eb396e78ac641478aa8770e18927e0e660115604be5b862b03ed
MD5 618507ba1febca07bd4afd394b99082e
BLAKE2b-256 90ddf2575c368878f68446c81a17837c52ed53e8c6bb71ba0e6ebb20a6a4596d

See more details on using hashes here.

File details

Details for the file scissiparity-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scissiparity-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for scissiparity-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9699bc3382159149d72d017ea4bfafa3a35bb5d0fd09055facf1c44ffe556b6d
MD5 39c91c804a03eb187c838699cc89ee16
BLAKE2b-256 a31b3c4db964d41cb88366658a4f6d6ddfc46a15abca544169d4e9d8cb1d1826

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page