Opened 4 years ago

Last modified 2 years ago

#241 assigned enhancement

Compiled Code For eval()

Reported by: digitalpoint Owned by: moo
Priority: major Milestone: 5.0.0
Component: cacher Version: 1.3.0
Keywords: Cc:
Application: PHP Version:
Other Exts: SAPI: Irrelevant
Probability: Blocked By:


The biggest performance issue we see these days is there is no good way to eval compiled code.

It would be *really* nice if XCache could intercept eval() calls, generate a md5 hash based on the code to be run, compile that code with the md5 as the internal key if the key isn't already compiled/stored in memory. Then execute the compiled version of the code.

Change History (3)

comment:1 Changed 4 years ago by moo

  • Status changed from new to assigned

comment:2 Changed 4 years ago by digitalpoint

Also, if something like this was possible, some sort of minimum length of the code to be eval() probably would be worth it. Something like "echo 'hello';" probably isn't worth the overhead of compiling, storing, etc.

I could be wrong, and wouldn't really know for certain without actually running some benchmarks.

comment:3 Changed 2 years ago by moo

  • Milestone changed from 1.3.3 to 2.1.0
Note: See TracTickets for help on using tickets.