I know some people store settings in an .ini file and get the values with parse_ini_file()
in PHP. Without running tests, I am curious about performance.
Do you know if opcode cache can cache any of this type of stuff if setting are in an ini file?
According to this old blog post retrieved from web archives.
From fastest to slowest:
If APC or other accelerator is available on the server plain PHP files would be the fastest due to fact that they will be parsed only once and kept in memory for further use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With