pipalacademy / hamr

0 stars 0 forks source link

Drop PyYAML dependency to use JSON or config.py instead #16

Open nikochiko opened 2 years ago

nikochiko commented 2 years ago

For the CGI apps we run, pyyaml is quite resource heavy compared to the rest of the loading procedure in hamr.cgi. This was checked by a profiler and with benchmarking tests.

If the overall time taken by hamr.cgi was 450ms, importing pyyaml and calling load() was responsible for ~300ms of that time.

Maybe toml can also be considered.