A Quick Note on XMLSearch.

For a long time, we have considered the use of XMLSearch slow compared to working through an xml object as a standard ColdFusion structure. However, recently we have discovered that XMLSearch is actually comparable in speed to the structured approach and it was just our way of using it that was causing the slowdowns. It turns out that that we were using the “//” XPath operator at the beginning of our calls to XMLSearch regardless of where the XMLDoc object that we were supplying was pointing to. ¬†This would cause the search function to go to the root of the document and search the whole tree. ¬† Removing the “//” operator from the XPath portion of the call forces ColdFusion […]

Gulp Watch After Windows Restart

Recently we’ve switched over to using gulp and node.js for a few pieces of our projects and I had pondered a way to get our gulp watch process running on startup. When we reboot our windows based servers I wanted to spawn a command prompt window running Gulp Watch (or just Gulp) in our working directory so when we deploy our source there it will automatically version/build out our compiled code. I ended up using a simple Shortcut to accomplish this The shortcut should point to C:\Windows\system32\cmd.exe With the addition of /k gulp watch So Target C:\Windows\System32\cmd.exe /k gulp watch Then in the starting directory I put our working directory. Double clicking the icon launches gulp watch, I then added […]