Good morning, I'm considering to use graph-tool as a part of a python web-service providing graph analysis features. Graph-tool performance looks really promising, but I'm not sure if it fits my case. I would like to load graph into the memory and share/read it between multiple threads/processes (to handle many requests in parallel to the same graph). Is Graph thread safe? For me it seems that it's not, but I would like to confirm it. Best Regards, Damian -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
Am 21.06.2018 um 07:43 schrieb mae:
Good morning,
I'm considering to use graph-tool as a part of a python web-service providing graph analysis features. Graph-tool performance looks really promising, but I'm not sure if it fits my case. I would like to load graph into the memory and share/read it between multiple threads/processes (to handle many requests in parallel to the same graph). Is Graph thread safe? For me it seems that it's not, but I would like to confirm it.
Non-modifying operations to Graph are thread-safe. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
how do you share/read graph object between multiple threads/processes ? -- Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
Am 02.07.2018 um 13:52 schrieb M. Vigouroux:
how do you share/read graph object between multiple threads/processes ?
The same way you do with anything else. Remember, however, that relying on the Python API to do multithreading is largely hampered by Python's GIL, and multiprocessing can be costly. -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (3)
-
M. Vigouroux -
mae -
Tiago de Paula Peixoto