Skip to content

Simple library to create named shared-memory regions in Python 3 to transfer data between processes with no copying.

License

Notifications You must be signed in to change notification settings

zpincus/SharedMemoryBuffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interprocess Shared Memory Buffer

Authors: Erik Hvatum and Zachary Pincus [email protected]

Simple library to create named shared-memory regions in Python 3 to transfer data between processes with no copying. Works on Linux and OS X, and probably other similar platforms.

In particular, the ISMBuffer code is optimized to share numpy arrays between processes, but arbitrary data can be stored.

The regions contain an internal reference count so are deleted when the last process is done with the region. This simplifies the bookkeeping required for data sharing between procsees. The fact that the regions are named allows arbitrary processes to easily open the regions, unlike anonymous shared-memory regions which are difficult to share except between forked processes.

About

Simple library to create named shared-memory regions in Python 3 to transfer data between processes with no copying.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%