ninia / jep

Embed Python in Java
Other
1.31k stars 149 forks source link

Support for isolated SubInterpreter #512

Closed bsteffensmeier closed 10 months ago

bsteffensmeier commented 10 months ago

When using Python 3.12 or greater it is now possible to created isolated SubInterpreters which have separate GILs to improve concurrency. This feature can be enabled by setting the SubInterpreterOptions on JepConfig to SubInterpreterOptions.isolated(). For more details about how isolated sub-interpreters are different from ordinary interpreters refer to PEP-684.