Discussions related to Visual Prolog
Harrison Pratt
VIP Member
Posts: 459
Joined: 5 Nov 2000 0:01

Prolonged compile time due to nested packages ?

Post by Harrison Pratt »

I have a 32 bit VIP 9 project that I migrated to VIP 11 (64 bit).
In that project I have a package (e.g., "A") with 5 sub-packages (e.g., "A1", "A2", etc.).
The sub-packages compile within a few seconds, but the problem is that it can take 10-15 minutes to compile a file in the "A" package, even after subpackages "A1" et al. have been recompiled.
This was not a problem in the VIP 9 project.
I have run OSID on all the relevant packages.

Is nesting of packages discouraged?
Should I just move some/all of the sub-packages from the "A" package to the application project folder?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1469
Joined: 28 Feb 2000 0:01

Re: Prolonged compile time due to nested packages ?

Post by Thomas Linder Puls »

I am certain the problem is something else. Where packages are located is "irrelevant" (as long as it is on a local disk, of course).

"Correct" packages have ph-file that includes the interface (i-files) and classes (cl-files) of the package and a pack-file that includes the implementations (pro-files) of the classes in the package.

Besides this the ph-file and the pack-file should both include other packages ph-files as needed.

Given that the actual placement of the packages on the disk is irrelevant; i.e. to the "system" but it may of course be relevant to you for "mental" reasons.

If possible you can zip the project (without obj, deb, scope, dll and exe files) and mail it to support@visual-prolog.com then I can have a look at it.
Regards Thomas Linder Puls
PDC