Hi everybody,

 

 

I have an application where a small file is included at multiple places.

So far so good.

 

The problem is that this include consists in a small piece of code which is
inside a multi-level loop.

The include is done about an average of 100.000 times . 

 

When I manually replace the include with the code which is inside, the
performance boost is about  a 50-100 factor.. 
(with opcache enabled, it is far worst without opcache).

 

The problem is that if I make a change within the code, I do have to not
forget to make changes a dozen of places...

 

Could it be possible to add a directive such as :

 

inline < filename >   

 

That includes  the file inline within the compiled pseudo code (at compile
time) ... 

 

(it does not have a big importance for me that the target pseudo-code sets
the line number of all inlined instructions to the line number of the inline
directive)

 

Am I the only people needing this feature ?

 

 

Best regards,

Pascal KISSIAN

 

 

 

 

Reply via email to