You have 3 options to run it.
eval()
... the default.- save to a temporary directory temporary and
include ""
in code - Forget the database. Take your time and write the code inline the file like any other standard code.
Here's the speed test result. For the same amount of code ran 100,000 times.
- Eval
- 0.9 sec.
- Save in directory and include()
- 0.66 secs
- Inline.
- 0.55 secs.
So conclusion. Saveing to temporary and executing it by putting the include "";
call in a loop is just as fast as inlining it. While eval()
takes double the time of both.