Overhead of method access #5120
Unanswered
juanjosegarciaripoll
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Please take a look at https://nanobind.readthedocs.io/en/latest/. I started this project to reduce exactly those kinds of overheads. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am in the process of migrating a rather large project from Python + Cython to PyBind11. However, I have found that the pybind11 code has a rather substantial overhead in class accessors. I have cooked a minimal example here https://github.com/juanjosegarciaripoll/pybind11_example When executed on a Windows AMD64 machine using the latest Miniforge and pybind 2.12, I get these timings
Am I doing anything wrong? Can I get closer to the Cython class example?
Beta Was this translation helpful? Give feedback.
All reactions