开发者

Which is better for performance - using php-qt or writing custom php extensions for c++ using swig?

开发者 https://www.devze.com 2023-03-31 12:54 出处:网络
I\'m writing a php web application using Yii and need to use C++ (will use Qt-Core) for some performance critical parts. I have two optio开发者_如何学Cns:

I'm writing a php web application using Yii and need to use C++ (will use Qt-Core) for some performance critical parts. I have two optio开发者_如何学Cns:

i) Using php-qt and write those parts using qt bindings for php.

ii) Write those parts in C++/Qt and using swig to generate php extensions to use in my php app.

Which one would you suggest from a performance standpoint?

How much difference would there be between the two?

Thanks!


Even though I like Qt quite a bit, but if performance is your concern I would take the swig path.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号