Skip to content

Share PerspectiveManager between multiple threads in Python? #1588

Closed Answered by texodus
Y3NK asked this question in Q&A
Discussion options

You must be logged in to vote

perspective-python comes with both a server (PerspectiveManager via tornado or other async server), as well as a client which you can use to connect via websocket to a local or remote Python server.

For extreme performance, there are more options for async cooperative GIL-less threading, a PR for true GIL-less multi-reader support, and I imagine it is quite easy to get Perspective to work via python's shared memory support in multiprocessing. However, none of this is necessary for multiprocessing with perspective - a simple Python client/server will perform quite well without any tweaks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timkpaine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants