I would like to submit this patch which improves calling performance of Python methods and back. With new development of PyCXX this can be already not only way to improve performance but still, there are many projects who depend on Py::PythonExtension havily and which would not change that due to too many changes like in our project.
The improvement is: to skip hash_map lookups for methods by name and calling them by function pointer instead directly. This method provides direct calling and would save much time if Python and C++ environments cooperate intensively with each other.
The patch is a robust and fully tested (with time also) version and worked for around 4 months for now on project with around 6000 Python scripts registered to C++ core and being heavily called.
Patch is done over Head Revision 188.