Host IronPython instance per TPL thread? #1687
vadimkantorov
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to host IronPython interpreter per worker thread from the TPL library? Should it be possible to somehow override the TPL's ThreadPool to ask them to initialize and keep a IronPython runtime object in threadlocal state?
As I just found out, the cPython unfortunately does not support sub-interpreters and isolated per-thread interpreters just yet (my shallow investigation in pythonnet/pythonnet#2170), so I wonder if IronPython can support in my migration of TPL pipeline using C# payloads to TPL pipeline using Python payloads (I understand the limitations of IronPython / unavailability of NumPy/PyTorch and so forth)
Beta Was this translation helpful? Give feedback.
All reactions