Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问与 PHP-CPP 比有什么优劣,还是都是一种解决方案。 #1

Closed
pavlelee opened this issue Jun 5, 2017 · 1 comment
Labels

Comments

@pavlelee
Copy link

pavlelee commented Jun 5, 2017

之前一直用 PHP-CPP
,但是看到Rango除了PHP-X当然要用了,但是发现好相似,能否就PHP-CPP对比一下?

@matyhtf
Copy link
Member

matyhtf commented Jun 6, 2017

  1. PHP-CPP性能较差,PHP-X进行了大量性能优化,C++扩展函数性能甚至比标准的PHP扩展性能更高
  2. PHP-CPP实现复杂,PHP-X更简单
  3. PHP-CPP的API不友好,学习成本高,PHP-X的API更友好,学习成本低,几乎可以立即上手
  4. PHP-CPP提供的功能没有PHP-X,比如PHP-CPP不支持Resource,不支持Embed,还有很多底层的Zend API没有提供封装,而PHP-X全部提供了

@matyhtf matyhtf closed this as completed Jun 6, 2017
@matyhtf matyhtf changed the title 请问与http://www.php-cpp.com比有什么优劣,还是都是一种解决方案。 请问与 PHP-CPP 比有什么优劣,还是都是一种解决方案。 Jun 6, 2017
@matyhtf matyhtf reopened this Jun 6, 2017
@matyhtf matyhtf closed this as completed Jul 7, 2017
matyhtf pushed a commit that referenced this issue Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants