Is it possible to pass the processing to Go from PHP?
We all know that php is very slow with text lines especially regexps. 5.6 well, at least things just the way.
For a project completely on the Go need a different web server and even a different architecture.
Is it possible to pass through exec() or any other crutches the processing lines to transfer the language quickly, and then to receive from him the finished result?
If not then maybe Go with Python might work, and how to arrange shipment <-> receive?
It really does not exist for PHP processing modules regular expressions in native binary code? Yes, this can not be.
Will be easier and more efficient on the order.
Rebeka.Kunze answered on July 9th 19 at 11:30
Suggest wonder you have so many text processing and it is so very slow? The fact that calling something exec'om and or through the proposed tov. ZeroMQ - thing is not free. There is a serious risk that the overhead of calling external programs will cover all benefits.
In other words, if you have it just accumulates a large pool of strings that can one package be transferred to external processing - there is a sense to be soared. But if your goal is to replace a bunch of scattered code preg_match'her (or whatever page) on its function, a "fast track" Go or Python ohms, not suggest.
bailee_Stant answered on July 9th 19 at 11:32
Why do something where-that to pass, then process for go/Python/whatever.
PHP-why here involved in this case? Instead of a win will get even slower solution, just harder twice.
Well, if you really want to make a mess, raise your GO a small web server which accepts http requests for processing and send back the queries from PHP.