Shower Than C Extension
arshidkv12 opened this issue · 7 comments
arshidkv12 commented
Hi
I tested with xdebug profile option with grind cache.
Functions are slower than c. How to speed up?
jmjoy commented
What about the data?
arshidkv12 commented
jmjoy commented
Do you build under release
?
arshidkv12 commented
Yes
…On Thu, 25 Jan, 2024, 8:40 am jmjoy, ***@***.***> wrote:
Do you build under release?
—
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABT5Y5KK4RFWKLXKBRSRK23YQHEI7AVCNFSM6AAAAABCIK47M2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBZGI3TCNRVGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
jmjoy commented
arshidkv12 commented
jmjoy commented
PHP is not very friendly to writing extensions in non-C/C++ languages because PHP's source code is heavy and uses macros, while Rust does not support C macros, so some tricks are needed to achieve the desired effect, which can affect performance. However, the purpose of this project is not to improve performance, but simply to use Rust to write PHP extensions, so performance issues are not considered.