purescript / pursuit

Website for hosting and searching PureScript API documentation

Home Page:https://pursuit.purescript.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slow page loads on packages with many modules

baffalop opened this issue · comments

Pursuit is overall a fantastic tool, but unfortunately one of my first experiences using it in anger was when I started learning Deku. At first I thought some links weren't working at all, because every single page load on that package takes ~6s for me. I suspect the thing about this package that gives Pursuit a severe performance hit is number of modules: I think it has a separate module for every single attribute and every element in the HTML spec.

Is it because of Pursuit's file-based database that this particularly impacts performance? I imagine reading and parsing many small files will be slower than a handful of huge ones. Are there any quick wins to be had mitigating this?

Unfortunately, I'm not familiar enough with this codebase to answer your questions.