2 ms·
Pretty sure newer versions of php have an opcode cache built in, so they don't need to load everything on every request now?
by adrianmacneil 11y ago
Pretty sure newer versions of php have an opcode cache built in, so they don't need to load everything on every request now?
- brightball 11y agoUnless something has changed, that's the equivalent of keeping the files in RAM but it doesn't maintain state and routes, etc so it still has to reprocess.
- acveilleux 11y agoThat depends on implementation. The cache could be maintained in shared memory, an external process or disk files and in all cases can provide a significant speed up over reading in and compiling hundreds of files without burdening all workers with all compiled opcodes. The current implementation uses shared memory. In addition, that does not mean retaining all the variables and data, only the compiled opcodes and that's the bulk of the startup time.