I am optimizing a Zend Framework based application, and I am sure using ini based config slows down overall performance as the sites need to read and parse ini on each and every page request. Now I have 2 ideas to deal with the situation
- Cache the ini file or cache the zend_config object and use it from cache
- Or convert the ini based config to php
I am not sure which approach provides better performance. I will be modifying the configuration my self in future if needed, and I don't need the feature of writing config back to the ini. So please suggest which approach is better for extreme performance. In cache approach its just deserializing an already existing object, while in php array its constructing object from scratch.