@necrosis @gborn That depends on how much traffic the site gets. CGI is slower and uses more memory because it has to spawn a new process for every request. But servers in 2024 are faster and have more memory than those in 2006, so that might be enough to compensate.
#Apache httpd gives an additional boost if you use mod_cgid instead of mod_cgi: https://httpd.apache.org/docs/current/mod/mod_cgid.html
Not enough? Install mod_perl and use its #Perl registry handler instead: https://perl.apache.org/docs/2.0/user/intro/start_fast.html#Registry_Scripts
apache perl mod_cgid - Apache HTTP Server Version 2.4