Please see comfyui-transceiver, the ComfyUI custom nodes binding of the "transceiver" library.
"transceiver" is a python library that swiftly exchanges fundamental data structures, specifically numpy arrays, between processes, optimizing AI inference tasks that utilize ComfyUI.
When processing a large number of requests, the SaveImage and LoadImage nodes may be IO-limited, and using shared memory improves performance by passing images only through memory access, not through IO.
The "transceiver" is indexed by PyPI. You can easily integrate it into any project.
pip install transceiver
UNDER CONSTRUCTION
See core.py doc