I got a crazy idea, but please hear me out:
When people talk about the pros and cons of PyMEL what comes up are things like:
-PyMEL is quicker to write
-PyMEL is pythonic
-PyMEL is object oriented
…but certain PyMEL things are simply SLOWER
PyMEL is slow because certain operations (like pm.ls(selection=True, flatten=True) results in PyMEL having to create a lot of PyMEL objects (PyNodes) like pymel.core.general.MeshEdge(dolansEdge).
I’m curious though if this object creation part somehow can be done with OpenMaya instead? Or even better: a compiled C++ plugin? You would identify the slower parts of PyMEL and write OpenMaya substitutes for them (which ofc, need to yield objects compatible to the rest of the PyMEL lib).
…or, I could simply mix OpenMaya and PyMEL and use OO where necessary.