CEP Optimizations & Photo Changes!

Hello and sorry if the wiki has been buggy since the last half of November. When automated tables rolled out for the site it increased the already costly compile time from around 13 minutes to well over 25. This caused issues with my hosting platform to then start charging me for all the extra compute.

So I finally got around to optimizing the wiki, especially image compiling! We are now down to a 9 minute compile, which can probably further be reduced by optimizing the table automation as well. This does mean if you compile locally there is another step, which you should just create a script for:

#!/usr/bin/env bash
set -euo pipefail

echo "Indexing Photos"
source .venv/bin/activate
python3 scripts/build_photos_index.py

hugo

This puts 2 files in your /data/ folder which link photos to photo pages and pages to articles.

But also the Photos Category has been changed! Now all photos display by most recently added/updated, and are properly paginated so you don’t have to load all 8,000 images to see anything. A good chunk of these images also don’t have any linked pages so I hope this encourages people to help re-link those!

1 Like

I’ve added two different compile methods to the root directory. “CEPCompile.sh” just does the bare minimum. “CEPCompileShow.sh” will additionally build PageFind and generate low-res versions of photos for lazy loading.

Also yes the site now supports low res previews before the final image comes in!