Skip to content

Why is the performance of extensions written with zephir not as good as native php? #2367

Answered by Jeckerson
010test asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, because string concatenation won't have any performance gain. Your code will use native PHP functions, but with +1 Zephir wrapper. In that cases you will need to implement your own functions written in C and called by zephir.

See: https://docs.zephir-lang.com/0.12/en/optimizers

Also see: #2151

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@010test
Comment options

Answer selected by 010test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants