A thought about speed ups
jimhavrilla opened this issue · 3 comments
jimhavrilla commented
There are a few things we can do to speed up the site in the future (not currently critical, but it would also be good for SEO, like Google results):
- Add HTTP2 support in apache, helps speedup, server load, etc. Should hopefully be as simple as a minor conf file update and apache rpm update, but we'll see. Also move from prefork apache to mpm for multiprocessing.
- Make all jinja/json arrays into javascript arrays for dataTables so I can use deferRender: true and the site loads way faster.
- Harder to do currently, because I spent a lot more time on this but...move from Apache to Nginx, everyone says it's far superior in speed for static rendering and handling multiple requests w less cores and RAM.
jimhavrilla commented
- Add minimized and efficient CSS.
- If possible (with droplet resources) use
ray
to parallelize tasks (worked for OpenFDA).
jimhavrilla commented
jimhavrilla commented
Big thanks to this article: https://inside-out.xyz/technology/how-to-enable-http-2-in-centos-7.html