How to develop C extensions for PHP apps?

前端 未结 3 1102
不知归路
不知归路 2020-12-16 07:38

My PHP app has a number-crunching part that is just to slow for PHP, so I was thinking of building a custom C extension, but it is impossible to find any good reference to s

3条回答
  •  借酒劲吻你
    2020-12-16 08:19

    This might not be an answer but more like a suggestion, There are tools out there to compile your php to an executable, which you could just then use as an extension. This Would uniform your code a bit and unify your project. I have tried something like this a while ago. The compiled php acts no differently than the compiled c would.

提交回复
热议问题