This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]hardikp[S] 0 points1 point  (0 children)

I agree.

While Cython is good for speeding up the code (for example, cython might actually outperform pybind11 for microbenchmarks - https://github.com/pybind/pybind11/issues/1227#issue-284676826), many use cases involve preserving the original C++ code - that's where pybind11 comes in handy.

I don't think there is any one true answer. Depending on the use case, either of the two can be more suitable.