Using the assembly for your performance problems is similar to using a sledgehammer to open the dam, while there is probably a lever that opens the dam. Better take a look at your structure first and see why these critical tasks have performance issues and see if you can change the structure.
In addition, since php is a scripting language that is interpreted at runtime, rewriting C code, as in the Udan example, gives a 90% increase in performance, rewriting C code to the assembly can add some additional 10%, but it will take 90% of the time .
On the other hand, the argument that you use in your assembly code gives you some bragging rights, up to the moment when another programmer looks at your code, restructures it, increasing productivity by 50% and completely bypassing your assembly.
source share