Adobe ColdFusion Server comes with a precompilation tool for parsing and compiling CFML templates (cfm, cfc) for Java bytecode. When I precompile, all templates are saved as .classfiles in \cfusion\wwwroot\WEB-INF\cfclasses\. But how does CF work with them?
CF Admin has the option "Save class files", so templates that are already compiled are reused at server startup. But how does this option affect precompiled templates? Do prefabricated templates even count then (since they are in the same folder)?
And how .classdoes CF process these files ? Are they loaded into memory and then compiled by the JVM for machine code? How does CF distinguish between older and newer templates? Seeing how a folder can reach 1,000,000 files and several GB of data, I doubt that there is any cleaning procedure.
Reference Information. We run about 100 applications with approximately 1000 templates for each application. When the server restarts and large code changes (which affects 100 or 1000 patterns * 100 applications), CF takes a long time to recompile everything to the point where the whole server just hangs, because the threads are blocked.
How can I use a precompilation tool to prepare code changes and speed up the response of CF?