@Zackster something you might be curious about. I don’t have this broken out into a stand-alone example just yet, but I’m trying to find performance bottlenecks in my ColdFusion custom tag email DSL. And, I think I just stumbled over something curious. With custom tags, there are two possible invocations:
<cfmodule template="Foo.cfm" />
<cfimport prefix="tags" taglib="./" /> <tags:Foo />
My assumption would be that these are essentially the same exact thing since the
cfimport tag is documented as being a “compiler directive”. So, I just assume these compile down to the same thing.
However, when I execute a custom tag using
<cfmodule> it seems to be much much faster than executing the same tag using
<cfimport>. This was surprising to me. I havent’ looked at the Java code; but, I thought you might find this interesting.
I’ll try to get a stand-alone example working after work.
As an aside, I didn’t really see any performance problems with
<cfimport> when I was working in CommandBox. However, when I started running my code inside a Docker container, things slowed down. I wonder if this has something to do with File I/O, which I know is significantly worse inside of Docker.