Will it decrease performance if we use some functions that are imported from Cpython and mix them with Codon itself? #564
Answered
by
arshajii
panxiaoguang
asked this question in
Q&A
-
For example, if we know that numpy was optimised by C, will it decrease codon's performance if we use functions from numpy and native codon simultaneously? |
Beta Was this translation helpful? Give feedback.
Answered by
arshajii
Jun 13, 2024
Replies: 1 comment 1 reply
-
Hi -- it shouldn't be any worse than Python's performance, but anything that goes through the Python bridge will just be running in CPython so Codon won't be optimizing/compiling it. Ultimately it will depend on how much is running through Codon vs. CPython! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
panxiaoguang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi -- it shouldn't be any worse than Python's performance, but anything that goes through the Python bridge will just be running in CPython so Codon won't be optimizing/compiling it. Ultimately it will depend on how much is running through Codon vs. CPython!