hassankhan / config

Config is a lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files
MIT License
969 stars 136 forks source link

Parsers performance #161

Open 8ctopus opened 1 year ago

8ctopus commented 1 year ago

First of all thank you for creating such a great package, I'm coming from DotEnv and I really enjoy what you have built.

I have played with the different parsers and have realized that there is a significant drop in performance with configurations in the Yaml format. It may be worth mentioning it in the README. If you agree, I will create a pull request.

Load configuration was 1ms in both json and php while the same configuration was 5ms with yaml.

DavidePastore commented 9 months ago

Hi @8ctopus . Thanks for your feedback. Maybe it would be worth to add a table with a complete benchmark for all the different parsers. What do you think?

8ctopus commented 9 months ago

I would just add a single paragraph about parsers performance not to make the readme much longer.