Open rustamwin opened 2 years ago
We're tried that. Caching requires serialization/deserialization for many constructs we can't directly dump and the process of de-serialization proved to be slower than doing many require
calls. It was quite a long time ago though, maybe it worth re-checking it.
We're tried that. Caching requires serialization/deserialization for many constructs we can't directly dump and the process of de-serialization proved to be slower than doing many require calls. It was quite a long time ago though, maybe it worth re-checking it.
At least only params.php can be cached. In params contains almost arrays. WDYT?
We're tried that. Caching requires serialization/deserialization for many constructs we can't directly dump and the process of de-serialization proved to be slower than doing many require calls. It was quite a long time ago though, maybe it worth re-checking it.
At least only params.php can be cached. In params contains almost arrays. WDYT?
we don't can sure that params contain only scalar values and without serialization this cannot be done.
We're tried that. Caching requires serialization/deserialization for many constructs we can't directly dump and the process of de-serialization proved to be slower than doing many require calls. It was quite a long time ago though, maybe it worth re-checking it.
At least only params.php can be cached. In params contains almost arrays. WDYT?
For example, in the parameters, a static method call: https://github.com/yiisoft/app/blob/master/config/params.php#L43
Also https://github.com/yiisoft/classifier should be cached to reduce IO operations.
Caching configurations can improve performance.
Proposal:
cache each config group to one file