Your Writing System Sucks
posts: 1279 , Kelatetía: Dis, Major Belt 1 message
And now, a monologue about site performance and what I'm going to do about it.
Truth be told, the current software stack behind Annie is never going to be blazing fast. All of its features come at a cost to performance. The single worst culprit of this is a conflict between programming paradigms: Cadre's page template philosophy encourages encapsulation (routing all activity through smaller pieces of code to keep it cleanly isolated) but this results in a lot of individual SQL queries (which might otherwise be grouped into one single query.) The forums and the languages page both have this problem, although I've done some work to mitigate it on the forums. (The site's front page is laggy because it counts unread forum posts; by contrast, it's very fast if you're not logged in, as are the forums more generally.)
I haven't mentioned this much, but the truth is that Cadre wasn't really designed as a production-grade platform for websites. Way, way back in 2009, when the project was new, my goal was to build a coding sandbox for prototyping new social platforms—alternatives to wikis, forums, Facebook, et cetera—so performance was never a top priority; instead, I was concerned with making it possible for users to program new site functionality through the website itself while respecting file-system-like access permissions so they couldn't damage the content made by others. This was a pretty unexplored piece of territory at the time, and I think Cadre's still better at it than, say, MediaWiki.