Open
Description
Am I correct that if I use pybind11 to build python modules (pyd shared libraries on windows) with static runtime things can go horribly bad?
Details
It is not as obvious from docs, but while looking at the code I've figured out that: there is this shared internals
object (see get_internals()
). Which contains a lot of std containers. If my application would have say 2 pybind11 modules it could happen that allocation/deallocation will happen across dll boundaries? Moreover static runtimes can be different. Not to mention potential ABI incompatibility.
Follow up question
If I make every pybind11 module with own internals (by having unique PYBIND11_INTERNALS_ID
) what would the downsides be? What features will be lost?
Metadata
Metadata
Assignees
Labels
No labels