I have a batch file which launches fbcmd and passed project file as a parameter. When I launch the script and dos window appears it shows license information and than the cursor blinks for about 6-7 times before fbcmd outputs "Project File..." and starts processing the input file. Can anyone explain why this is happenning and how to resolve it so that the build takes less time?
The delay you are seeing is where FBCMD is loading the action packages. The only thing you can do to improve this is in the IDE, open the Package Manager window from the tools menu and uncheck the packages you do not use. That will speed up the startup time slightly.
But why does FBCMD loads packages it is not using? Also, as I saw with TcpView it’s trying to establish connection to some hosts. Can this be somehow related to it?
That’s probably the network licensing. It should only wait a second or so though, unless there is a firewall interfering with it. How long exactly is it pausing?
As for loading packages, fbcmd has no idea what packages are needed, so it loads the same packages as the IDE does. This has never been a problem… does it really matter if your build takes a few seconds extra?
The cursor in the dos window blinks for about 6-8 times but it happens after license info is displayed so I guess it is not related to licensing.
As for loading packages I think it would be better if it worked in ‘lazy’ mode instead of loading all the packages. Why load 600 actions if only some of them are used? It would be better if it analyzed the package and loaded only the ones used.
The time to load 1 action vs 10 from a package is almost the same… the most time is the disk access.
I really don’t see a problem though… in the grand scheme of things an extra few seconds makes no difference when the actual build process takes much longer.