Alright, pushed/merged a rewrite of the XML rendering code for #Mastodon. It now uses Ox instead of Nokogiri and doesn't load a template. This should reflect on Atom feed loading times but also background jobs that involve sending Atom payloads to other instances. Here I go to sleep.
@Gargron Thank you for all your hard work and others who are also helping out.